Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008667/0.0008669, allocations: 95.5 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009477/0.0009477, allocations: 173.7 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007039/0.000704, allocations: 12 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.105, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002434/0.1075, allocations: 2.146 MB / 331.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.1086, allocations: 0.6321 MB / 331.8 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.1087, allocations: 4 kB / 331.8 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.1088, allocations: 31.77 kB / 331.9 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.109, allocations: 59.53 kB / 331.9 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.1092, allocations: 51.88 kB / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.1095, allocations: 254.8 kB / 332.2 MB, free: 484 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.1097, allocations: 87.59 kB / 332.3 MB, free: 396 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.1098, allocations: 87.59 kB / 332.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.1099, allocations: 95.55 kB / 332.5 MB, free: 212 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.1099, allocations: 12 kB / 332.5 MB, free: 200 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.697e-05/0.11, allocations: 12 kB / 332.5 MB, free: 188 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.993e-05/0.1101, allocations: 35.84 kB / 332.6 MB, free: 152 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.1102, allocations: 129.1 kB / 332.7 MB, free: 16 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.1104, allocations: 239 kB / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1105, allocations: 0 / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1105, allocations: 3.938 kB / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1105, allocations: 8 kB / 332.9 MB, free: 15.77 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008116/0.1113, allocations: 0.5109 MB / 333.4 MB, free: 15.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.1113, allocations: 8.031 kB / 333.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.485e-05/0.1114, allocations: 59.16 kB / 333.5 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.1115, allocations: 24.66 kB / 333.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.1118, allocations: 236.3 kB / 333.8 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.1118, allocations: 16.8 kB / 333.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.1118, allocations: 28.38 kB / 333.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.1123, allocations: 241.8 kB / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1123, allocations: 0 / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.1123, allocations: 12 kB / 334 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1123, allocations: 4 kB / 334.1 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003714/0.1127, allocations: 169.7 kB / 334.2 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.1139, allocations: 0.8322 MB / 335 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/0.1143, allocations: 170.5 kB / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.1144, allocations: 84.77 kB / 335.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.1145, allocations: 3.984 kB / 335.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1145, allocations: 42.48 kB / 335.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.1145, allocations: 0 / 335.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008089/0.1153, allocations: 355.3 kB / 335.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.1154, allocations: 59.28 kB / 335.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.1155, allocations: 178.6 kB / 335.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1155, allocations: 29.7 kB / 336 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.1156, allocations: 152.1 kB / 336.1 MB, free: 12.33 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.1157, allocations: 51.2 kB / 336.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.1157, allocations: 25.7 kB / 336.2 MB, free: 12.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1158, allocations: 330.8 kB / 336.5 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.116, allocations: 55.97 kB / 336.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.1162, allocations: 96.25 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.1165, allocations: 156.2 kB / 336.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1165, allocations: 0 / 336.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004403/0.1169, allocations: 229.3 kB / 337 MB, free: 11.36 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.117, allocations: 12.11 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.117, allocations: 4 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001657/0.1171, allocations: 32.78 kB / 337.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.1173, allocations: 31.98 kB / 337.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/0.1183, allocations: 1.366 MB / 338.5 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.1185, allocations: 31.86 kB / 338.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.1186, allocations: 16.06 kB / 338.5 MB, free: 9.723 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.1187, allocations: 137.7 kB / 338.6 MB, free: 9.578 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.1187, allocations: 15.81 kB / 338.7 MB, free: 9.562 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.318e-05/0.1188, allocations: 21.88 kB / 338.7 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1188, allocations: 0 / 338.7 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1188, allocations: 0 / 338.7 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1188, allocations: 12.06 kB / 338.7 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.1195, allocations: 0.5263 MB / 339.2 MB, free: 8.945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1195, allocations: 0 / 339.2 MB, free: 8.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.1196, allocations: 35.97 kB / 339.3 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.1198, allocations: 36.77 kB / 339.3 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.1198, allocations: 4 kB / 339.3 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009247/0.1207, allocations: 1.359 MB / 340.7 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1207, allocations: 0 / 340.7 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005825/0.1213, allocations: 372.9 kB / 341 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.1214, allocations: 100.9 kB / 341.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.1214, allocations: 8 kB / 341.1 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.1216, allocations: 35.97 kB / 341.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.1217, allocations: 23.91 kB / 341.2 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.1217, allocations: 4 kB / 341.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.491e-05/0.1218, allocations: 127.2 kB / 341.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1218, allocations: 0 / 341.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002888/0.1221, allocations: 55.84 kB / 341.4 MB, free: 6.629 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008566/0.1229, allocations: 0.9054 MB / 342.3 MB, free: 5.691 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004707/0.1234, allocations: 270.6 kB / 342.5 MB, free: 5.414 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1234, allocations: 0 / 342.5 MB, free: 5.414 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.1237, allocations: 200.6 kB / 342.7 MB, free: 5.207 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.1241, allocations: 36.05 kB / 342.8 MB, free: 5.172 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.1267, allocations: 2.359 MB / 345.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.127, allocations: 0.732 MB / 345.9 MB, free: 1.945 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.45e-05/0.1271, allocations: 17.5 kB / 345.9 MB, free: 1.93 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.15e-05/0.1272, allocations: 59.41 kB / 345.9 MB, free: 1.871 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1272, allocations: 3.938 kB / 345.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01591/0.1431, allocations: 4.038 MB / 350 MB, free: 13.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003585/0.1435, allocations: 236.8 kB / 350.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/1.986, allocations: 4 kB / 350.2 MB, free: 13.56 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/ControlledTemperature/ControlledTemperature.csv","../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,heatCapacitor.T,onOffController.y Variables in the result:TAmb,TDif,TRes,constantVoltage.V,constantVoltage.i,constantVoltage.n.i,constantVoltage.n.v,constantVoltage.p.i,constantVoltage.p.v,constantVoltage.v,der(heatCapacitor.T),fixedTemperature.T,fixedTemperature.port.Q_flow,fixedTemperature.port.T,ground.p.i,ground.p.v,heatCapacitor.C,heatCapacitor.T,heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,heatingResistor.LossPower,heatingResistor.R,heatingResistor.R_ref,heatingResistor.T,heatingResistor.T_heatPort,heatingResistor.T_ref,heatingResistor.alpha,heatingResistor.heatPort.Q_flow,heatingResistor.heatPort.T,heatingResistor.i,heatingResistor.n.i,heatingResistor.n.v,heatingResistor.p.i,heatingResistor.p.v,heatingResistor.useHeatPort,heatingResistor.v,idealSwitch.Goff,idealSwitch.LossPower,idealSwitch.Ron,idealSwitch.T,idealSwitch.T_heatPort,idealSwitch.control,idealSwitch.i,idealSwitch.n.i,idealSwitch.n.v,idealSwitch.p.i,idealSwitch.p.v,idealSwitch.useHeatPort,idealSwitch.v,logicalNot.u,logicalNot.y,onOffController.bandwidth,onOffController.pre_y_start,onOffController.reference,onOffController.u,onOffController.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,temperatureSensor.T,temperatureSensor.port.Q_flow,temperatureSensor.port.T,thermalConductor.G,thermalConductor.Q_flow,thermalConductor.dT,thermalConductor.port_a.Q_flow,thermalConductor.port_a.T,thermalConductor.port_b.Q_flow,thermalConductor.port_b.T,time