Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_0_0_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.0009107/0.0009107, allocations: 91.5 kB / 16.65 MB, free: 6.59 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.0009989/0.000999, allocations: 182.6 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002192, allocations: 5.312 kB / 301.5 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08249, allocations: 50.41 MB / 351.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002375/0.0849, allocations: 2.18 MB / 354.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.08593, allocations: 0.6273 MB / 354.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.08609, allocations: 7.938 kB / 354.8 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.08622, allocations: 31.77 kB / 354.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.08638, allocations: 59.53 kB / 354.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.0866, allocations: 55.89 kB / 354.9 MB, free: 404 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.08688, allocations: 258.7 kB / 355.1 MB, free: 144 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.08709, allocations: 87.59 kB / 355.2 MB, free: 48 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.08723, allocations: 79.73 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.08739, allocations: 99.45 kB / 355.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.08742, allocations: 12 kB / 355.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.406e-05/0.0875, allocations: 12 kB / 355.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.461e-05/0.08756, allocations: 39.78 kB / 355.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.08767, allocations: 129.1 kB / 355.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.08791, allocations: 239 kB / 355.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.08792, allocations: 4 kB / 355.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.08793, allocations: 4 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.08794, allocations: 0 / 355.8 MB, free: 15.43 MB / 302.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.0008292/0.08878, allocations: 0.5148 MB / 356.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.08882, allocations: 8.031 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.722e-05/0.08892, allocations: 63.16 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.08903, allocations: 32.64 kB / 356.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.08929, allocations: 236.3 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.08932, allocations: 16.81 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.08937, allocations: 24.31 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.08981, allocations: 234 kB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.08983, allocations: 0 / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.656e-05/0.08988, allocations: 12 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.0899, allocations: 11.94 kB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.09029, allocations: 165.7 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.09166, allocations: 0.8322 MB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.09209, allocations: 174.5 kB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.09228, allocations: 80.83 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.0923, allocations: 4 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.09235, allocations: 38.48 kB / 358.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.09236, allocations: 4 kB / 358.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.00087/0.09323, allocations: 355.3 kB / 358.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.09328, allocations: 55.34 kB / 358.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.09346, allocations: 183 kB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.09349, allocations: 29.7 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.09359, allocations: 148.1 kB / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.09364, allocations: 59.27 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.09368, allocations: 25.7 kB / 359.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.09381, allocations: 330.8 kB / 359.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.09395, allocations: 51.97 kB / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.09414, allocations: 100.2 kB / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002912/0.09444, allocations: 156.1 kB / 359.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.09445, allocations: 0 / 359.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004438/0.0949, allocations: 232 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.09493, allocations: 7.984 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.09494, allocations: 4 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002013/0.09515, allocations: 28.84 kB / 360 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.09531, allocations: 35.98 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.09646, allocations: 1.363 MB / 361.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.09665, allocations: 31.89 kB / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.09668, allocations: 15.98 kB / 361.4 MB, free: 9.379 MB / 302.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.000128/0.09681, allocations: 133.7 kB / 361.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.09685, allocations: 15.81 kB / 361.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.49e-05/0.0969, allocations: 21.88 kB / 361.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.09691, allocations: 0 / 361.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.09692, allocations: 4 kB / 361.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.09693, allocations: 11.98 kB / 361.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006899/0.09763, allocations: 0.5263 MB / 362.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.09764, allocations: 0 / 362.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.09778, allocations: 35.98 kB / 362.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.09789, allocations: 40.83 kB / 362.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.09792, allocations: 4 kB / 362.2 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009295/0.09885, allocations: 1.359 MB / 363.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.09886, allocations: 0 / 363.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005874/0.09946, allocations: 375.2 kB / 364 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/0.09954, allocations: 104.9 kB / 364.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.09957, allocations: 4 kB / 364.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.09976, allocations: 28.03 kB / 364.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/0.09984, allocations: 23.91 kB / 364.1 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.09985, allocations: 4 kB / 364.1 MB, free: 6.465 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.712e-05/0.09994, allocations: 131.2 kB / 364.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09995, allocations: 0 / 364.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.1002, allocations: 59.84 kB / 364.3 MB, free: 6.277 MB / 302.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.0008305/0.1011, allocations: 0.9102 MB / 365.2 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004643/0.1016, allocations: 273.7 kB / 365.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1016, allocations: 0 / 365.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.1018, allocations: 198.5 kB / 365.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.1022, allocations: 27.98 kB / 365.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.1048, allocations: 2.36 MB / 368.1 MB, free: 2.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.1051, allocations: 0.7359 MB / 368.8 MB, free: 1.602 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.139e-05/0.1052, allocations: 9.562 kB / 368.8 MB, free: 1.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-05/0.1052, allocations: 59.41 kB / 368.9 MB, free: 1.531 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1053, allocations: 0 / 368.9 MB, free: 1.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1555/0.2608, allocations: 4.02 MB / 372.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001281/0.261, allocations: 240.7 kB / 373.1 MB, free: 23.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/1.886, allocations: 0.6875 kB / 373.1 MB, free: 23.77 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/ControlledTemperature/ControlledTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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,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,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.heatPort.Q_flow,resistor.heatPort.T,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.useHeatPort,resistor.v,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