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.001172/0.001172, allocations: 96.39 kB / 17.58 MB, free: 5.418 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.001275/0.001275, allocations: 192 kB / 18.51 MB, free: 4.508 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.287/1.287, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001138/0.001138, allocations: 51.94 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07952/0.08067, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003858/0.08456, allocations: 2.459 MB / 329.8 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.08579, allocations: 0.6398 MB / 330.5 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.08597, allocations: 7.938 kB / 330.5 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.08614, allocations: 39.58 kB / 330.5 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.08628, allocations: 59.42 kB / 330.6 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.08653, allocations: 75.83 kB / 330.7 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002416/0.08678, allocations: 262.8 kB / 330.9 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.08698, allocations: 103.7 kB / 331 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.08709, allocations: 99.64 kB / 331.1 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.08723, allocations: 107.5 kB / 331.2 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.08728, allocations: 20 kB / 331.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.29e-05/0.08736, allocations: 27.94 kB / 331.3 MB, free: 480 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.381e-05/0.08742, allocations: 51.83 kB / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.08754, allocations: 119.4 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.08781, allocations: 251.1 kB / 331.7 MB, free: 56 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.08782, allocations: 0 / 331.7 MB, free: 56 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08783, allocations: 4 kB / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.08784, allocations: 0 / 331.7 MB, free: 52 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.0009008/0.08875, allocations: 0.542 MB / 332.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.08879, allocations: 12.03 kB / 332.2 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.554e-05/0.08888, allocations: 55.16 kB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.685e-05/0.08898, allocations: 28.66 kB / 332.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.08922, allocations: 232.3 kB / 332.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.08924, allocations: 16.81 kB / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.08928, allocations: 20.38 kB / 332.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.08968, allocations: 234 kB / 332.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.0897, allocations: 3.984 kB / 332.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.08973, allocations: 12 kB / 332.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.08974, allocations: 4 kB / 332.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.09011, allocations: 157.6 kB / 333 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.09128, allocations: 0.8244 MB / 333.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.09165, allocations: 170.5 kB / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.09183, allocations: 84.77 kB / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.09185, allocations: 0 / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.09188, allocations: 38.48 kB / 334.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.062e-06/0.09189, allocations: 4 kB / 334.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007948/0.09269, allocations: 332.5 kB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.09273, allocations: 55.41 kB / 334.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.09289, allocations: 182.5 kB / 334.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.09291, allocations: 29.7 kB / 334.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.093, allocations: 144.1 kB / 334.8 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.021e-05/0.09306, allocations: 55.2 kB / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.865e-05/0.09312, allocations: 41.7 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.09324, allocations: 330.8 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.09339, allocations: 51.97 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.09355, allocations: 92.19 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.09384, allocations: 147.5 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.09385, allocations: 0 / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004412/0.09429, allocations: 230 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.09432, allocations: 4 kB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.09433, allocations: 0 / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001641/0.0945, allocations: 28.84 kB / 335.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.09465, allocations: 43.91 kB / 335.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.09576, allocations: 1.469 MB / 337.3 MB, free: 9.977 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.09594, allocations: 39.75 kB / 337.3 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.09596, allocations: 4 kB / 337.3 MB, free: 9.934 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.0001131/0.09608, allocations: 125.8 kB / 337.5 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.09612, allocations: 15.81 kB / 337.5 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.09617, allocations: 21.88 kB / 337.5 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.09618, allocations: 8.047 kB / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.09619, allocations: 7.938 kB / 337.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.0962, allocations: 0 / 337.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.0969, allocations: 0.5148 MB / 338 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.09691, allocations: 0 / 338 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.09706, allocations: 31.91 kB / 338.1 MB, free: 9.145 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001119/0.09718, allocations: 36.97 kB / 338.1 MB, free: 9.105 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.0972, allocations: 8 kB / 338.1 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.09822, allocations: 1.465 MB / 339.6 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09823, allocations: 0 / 339.6 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.09882, allocations: 358.8 kB / 339.9 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.442e-05/0.09891, allocations: 104.9 kB / 340 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.09894, allocations: 4 kB / 340 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.09915, allocations: 23.98 kB / 340 MB, free: 6.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.09921, allocations: 15.97 kB / 340.1 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.09922, allocations: 8 kB / 340.1 MB, free: 6.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.919e-05/0.09932, allocations: 128.4 kB / 340.2 MB, free: 6.832 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.09933, allocations: 0 / 340.2 MB, free: 6.832 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.09964, allocations: 63.84 kB / 340.3 MB, free: 6.77 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.0008456/0.1005, allocations: 0.8886 MB / 341.1 MB, free: 5.848 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005198/0.101, allocations: 270.4 kB / 341.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.101, allocations: 0 / 341.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002522/0.1013, allocations: 192 kB / 341.6 MB, free: 5.371 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.1017, allocations: 28.06 kB / 341.6 MB, free: 5.344 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.1044, allocations: 2.211 MB / 343.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.1047, allocations: 0.732 MB / 344.6 MB, free: 2.266 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.514e-05/0.1048, allocations: 17.55 kB / 344.6 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.641e-05/0.1049, allocations: 59.41 kB / 344.6 MB, free: 2.191 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1049, allocations: 0 / 344.6 MB, free: 2.191 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.1299, allocations: 4.429 MB / 349.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.996/9.126, allocations: 19.94 kB / 349.1 MB, free: 13.68 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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