Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 68.05 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08092/0.08202, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003557/0.08561, allocations: 2.51 MB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.08672, allocations: 0.6816 MB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.08689, allocations: 4 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.08705, allocations: 31.66 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.0872, allocations: 71.34 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.08744, allocations: 63.91 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.08772, allocations: 262.8 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.08792, allocations: 107.6 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.08805, allocations: 91.66 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.08821, allocations: 119.5 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.08825, allocations: 20 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.039e-05/0.08833, allocations: 24 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.08839, allocations: 51.83 kB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.0885, allocations: 115.5 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.08877, allocations: 263 kB / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.08878, allocations: 0 / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08879, allocations: 0 / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.0888, allocations: 0 / 362 MB, free: 9.598 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.0008704/0.08967, allocations: 0.5381 MB / 362.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.08971, allocations: 12.03 kB / 362.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.375e-05/0.0898, allocations: 67.05 kB / 362.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.804e-05/0.0899, allocations: 24.66 kB / 362.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.09014, allocations: 235.6 kB / 362.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.09016, allocations: 12.81 kB / 362.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.0902, allocations: 24.38 kB / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003913/0.0906, allocations: 230 kB / 363.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.09062, allocations: 3.938 kB / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.09065, allocations: 12 kB / 363.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.09066, allocations: 11.98 kB / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003621/0.09103, allocations: 153.7 kB / 363.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.09222, allocations: 0.8243 MB / 364.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003594/0.09259, allocations: 162.7 kB / 364.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.09277, allocations: 83.48 kB / 364.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.0928, allocations: 4 kB / 364.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.09283, allocations: 42.44 kB / 364.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.09283, allocations: 0 / 364.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008065/0.09364, allocations: 331.3 kB / 364.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.09369, allocations: 59.34 kB / 364.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.09382, allocations: 174.6 kB / 364.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.09385, allocations: 33.7 kB / 365 MB, free: 6.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.09394, allocations: 144.1 kB / 365.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.09399, allocations: 59.12 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.09405, allocations: 37.72 kB / 365.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.24e-05/0.09415, allocations: 334.8 kB / 365.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.09431, allocations: 51.97 kB / 365.6 MB, free: 5.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.09447, allocations: 92.25 kB / 365.7 MB, free: 5.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.09476, allocations: 139.2 kB / 365.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.09477, allocations: 0 / 365.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004375/0.09521, allocations: 226.1 kB / 366 MB, free: 5.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.09523, allocations: 4 kB / 366 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.09525, allocations: 4 kB / 366 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.09542, allocations: 32.83 kB / 366.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.09558, allocations: 35.92 kB / 366.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.09664, allocations: 1.473 MB / 367.6 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.09682, allocations: 27.89 kB / 367.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.09684, allocations: 8 kB / 367.6 MB, free: 3.496 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.0001089/0.09696, allocations: 142.7 kB / 367.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.097, allocations: 15.81 kB / 367.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.982e-05/0.09705, allocations: 26 kB / 367.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.09706, allocations: 7.984 kB / 367.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.09707, allocations: 3.938 kB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.09707, allocations: 0 / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006758/0.09776, allocations: 0.5186 MB / 368.3 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.09777, allocations: 0 / 368.3 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.09792, allocations: 27.98 kB / 368.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.09804, allocations: 32.83 kB / 368.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.09806, allocations: 4 kB / 368.4 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009556/0.09903, allocations: 1.457 MB / 369.8 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.09904, allocations: 0 / 369.8 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005712/0.09962, allocations: 361 kB / 370.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.205e-05/0.09971, allocations: 104.9 kB / 370.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.09974, allocations: 8.125 kB / 370.3 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.09994, allocations: 23.97 kB / 370.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.1, allocations: 19.97 kB / 370.4 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.1, allocations: 4 kB / 370.4 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.848e-05/0.1001, allocations: 128.3 kB / 370.5 MB, free: 400 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1001, allocations: 3.938 kB / 370.5 MB, free: 396 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.1004, allocations: 59.84 kB / 370.5 MB, free: 336 kB / 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.1414/0.2418, allocations: 0.8853 MB / 371.4 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006277/0.2425, allocations: 268.2 kB / 371.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.2425, allocations: 0.8438 kB / 371.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.2428, allocations: 197.1 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004389/0.2433, allocations: 30.08 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.246, allocations: 2.204 MB / 374.1 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.2462, allocations: 0.7363 MB / 374.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.068e-05/0.2463, allocations: 16.56 kB / 374.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.63e-05/0.2464, allocations: 59.28 kB / 374.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2464, allocations: 0 / 374.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.2714, allocations: 4.431 MB / 379.4 MB, free: 16.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.219/9.49, allocations: 5.109 kB / 379.4 MB, free: 16.31 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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