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.001364/0.001365, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001403/0.001403, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.333/1.333, allocations: 205.1 MB / 224 MB, free: 12.43 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.001248/0.001248, allocations: 44.16 kB / 280.2 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08305/0.08431, allocations: 46.64 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003518/0.08786, allocations: 2.5 MB / 329.4 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.08895, allocations: 0.6476 MB / 330 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.08915, allocations: 4 kB / 330 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.0893, allocations: 23.78 kB / 330.1 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.08947, allocations: 55.53 kB / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.08972, allocations: 63.88 kB / 330.2 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002834/0.09002, allocations: 254.9 kB / 330.4 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.09021, allocations: 99.67 kB / 330.5 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.09035, allocations: 103.6 kB / 330.6 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.09049, allocations: 103.5 kB / 330.7 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.09054, allocations: 28 kB / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.951e-05/0.09063, allocations: 32 kB / 330.8 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.585e-05/0.09068, allocations: 51.81 kB / 330.8 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.822e-05/0.09079, allocations: 115.4 kB / 330.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.09105, allocations: 255.1 kB / 331.2 MB, free: 352 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.09106, allocations: 7.938 kB / 331.2 MB, free: 344 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.09107, allocations: 0 / 331.2 MB, free: 344 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.09108, allocations: 0 / 331.2 MB, free: 344 kB / 270.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.0008664/0.09195, allocations: 0.5381 MB / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.092, allocations: 11.97 kB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.931e-05/0.09209, allocations: 59.17 kB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.09219, allocations: 28.66 kB / 331.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.09243, allocations: 228.3 kB / 332.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.09246, allocations: 20.81 kB / 332.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.0925, allocations: 20.38 kB / 332.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.0929, allocations: 237.9 kB / 332.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.09293, allocations: 0 / 332.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.09295, allocations: 4 kB / 332.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.09297, allocations: 12 kB / 332.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000348/0.09332, allocations: 161.6 kB / 332.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.09447, allocations: 0.8204 MB / 333.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.09484, allocations: 170.5 kB / 333.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.09502, allocations: 84.75 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.09505, allocations: 0 / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.09507, allocations: 46.5 kB / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.09508, allocations: 0 / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007862/0.09587, allocations: 323.3 kB / 333.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.09592, allocations: 59.34 kB / 334 MB, free: 13.3 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.09607, allocations: 178.7 kB / 334.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.0961, allocations: 29.7 kB / 334.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.385e-05/0.09619, allocations: 148 kB / 334.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.494e-05/0.09624, allocations: 55.2 kB / 334.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.018e-05/0.09631, allocations: 37.7 kB / 334.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.09642, allocations: 330.8 kB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.09657, allocations: 47.97 kB / 334.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.09673, allocations: 96.25 kB / 334.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.09702, allocations: 143.3 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.09703, allocations: 0 / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000465/0.0975, allocations: 222 kB / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.09754, allocations: 4 kB / 335.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.09755, allocations: 4 kB / 335.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001979/0.09776, allocations: 36.91 kB / 335.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.09791, allocations: 35.97 kB / 335.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.0991, allocations: 1.465 MB / 336.8 MB, free: 10.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.0993, allocations: 35.72 kB / 336.8 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.09932, allocations: 16 kB / 336.8 MB, free: 10.23 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.000108/0.09944, allocations: 129.9 kB / 337 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.09949, allocations: 15.89 kB / 337 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.32e-05/0.09953, allocations: 25.86 kB / 337 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.09954, allocations: 4 kB / 337 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.09956, allocations: 3.938 kB / 337 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.09957, allocations: 4 kB / 337 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006965/0.1003, allocations: 0.5225 MB / 337.5 MB, free: 9.457 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1003, allocations: 0 / 337.5 MB, free: 9.457 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.1004, allocations: 23.98 kB / 337.6 MB, free: 9.434 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.1005, allocations: 36.78 kB / 337.6 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.1006, allocations: 3.984 kB / 337.6 MB, free: 9.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.1016, allocations: 1.465 MB / 339.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1016, allocations: 4.062 kB / 339.1 MB, free: 7.785 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005825/0.1022, allocations: 353 kB / 339.4 MB, free: 7.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.754e-05/0.1023, allocations: 100.9 kB / 339.5 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.1023, allocations: 8 kB / 339.5 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.1025, allocations: 24.03 kB / 339.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.104e-05/0.1026, allocations: 20.11 kB / 339.6 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.1026, allocations: 4 kB / 339.6 MB, free: 7.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.762e-05/0.1027, allocations: 123.2 kB / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1027, allocations: 0 / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.1031, allocations: 59.84 kB / 339.8 MB, free: 7.07 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.0009101/0.104, allocations: 0.8951 MB / 340.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005165/0.1045, allocations: 274.5 kB / 340.9 MB, free: 5.863 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1045, allocations: 0 / 340.9 MB, free: 5.863 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.1048, allocations: 194.6 kB / 341.1 MB, free: 5.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.1052, allocations: 43.59 kB / 341.2 MB, free: 5.621 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.108, allocations: 2.286 MB / 343.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1084, allocations: 0.7359 MB / 344.2 MB, free: 2.465 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.628e-05/0.1085, allocations: 17.55 kB / 344.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.1086, allocations: 55.42 kB / 344.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1086, allocations: 0 / 344.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.1278, allocations: 4.246 MB / 348.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.128, allocations: 249.6 kB / 348.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/1.941, allocations: 7.938 kB / 348.7 MB, free: 13.86 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