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.001131/0.001131, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001169/0.001169, allocations: 188.2 kB / 18.66 MB, free: 4.414 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.305/1.305, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001297/0.001297, allocations: 47.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.08096, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003839/0.08484, allocations: 2.471 MB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.08616, allocations: 0.6434 MB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.0864, allocations: 4 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.08661, allocations: 31.66 kB / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.08683, allocations: 71.33 kB / 377.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.08714, allocations: 71.84 kB / 377.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.08747, allocations: 254.8 kB / 378.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.08771, allocations: 115.6 kB / 378.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.08787, allocations: 103.6 kB / 378.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.08804, allocations: 107.5 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.08808, allocations: 20 kB / 378.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.523e-05/0.08819, allocations: 32 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.382e-05/0.08824, allocations: 47.84 kB / 378.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.08836, allocations: 115.5 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.08867, allocations: 259 kB / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.08868, allocations: 0 / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08869, allocations: 0 / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.0887, allocations: 0 / 378.9 MB, free: 0.7422 MB / 318.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.0009838/0.08969, allocations: 0.542 MB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.08974, allocations: 8.031 kB / 379.5 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.08985, allocations: 63.11 kB / 379.6 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.08998, allocations: 28.59 kB / 379.6 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1607/0.2507, allocations: 231.6 kB / 379.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.2507, allocations: 16.91 kB / 379.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.2508, allocations: 19.16 kB / 379.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000453/0.2512, allocations: 235.1 kB / 380.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2512, allocations: 0 / 380.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.2513, allocations: 5.25 kB / 380.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2513, allocations: 6.578 kB / 380.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003849/0.2517, allocations: 165 kB / 380.2 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.2529, allocations: 0.8298 MB / 381.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.2533, allocations: 160.1 kB / 381.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.2534, allocations: 78.97 kB / 381.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.2535, allocations: 1.375 kB / 381.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.2535, allocations: 33.75 kB / 381.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.2535, allocations: 1.781 kB / 381.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008094/0.2543, allocations: 337.2 kB / 381.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.2543, allocations: 57.53 kB / 381.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.2545, allocations: 172.5 kB / 381.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.2545, allocations: 31.31 kB / 381.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.615e-05/0.2546, allocations: 143.9 kB / 382.1 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.2546, allocations: 57.78 kB / 382.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.2547, allocations: 41.22 kB / 382.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.2548, allocations: 328 kB / 382.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.2549, allocations: 57.47 kB / 382.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.2551, allocations: 95.33 kB / 382.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.2554, allocations: 152.9 kB / 382.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2554, allocations: 2.109 kB / 382.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005249/0.2559, allocations: 214.1 kB / 383 MB, free: 11.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.256, allocations: 5.5 kB / 383 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.256, allocations: 1.797 kB / 383 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.2562, allocations: 33.73 kB / 383 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.2564, allocations: 42.55 kB / 383.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008803/0.2572, allocations: 1.468 MB / 384.5 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.2574, allocations: 30.16 kB / 384.6 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.2575, allocations: 5.844 kB / 384.6 MB, free: 9.992 MB / 318.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.0001019/0.2576, allocations: 143.9 kB / 384.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.6e-05/0.2576, allocations: 20.66 kB / 384.7 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.151e-05/0.2577, allocations: 19.97 kB / 384.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2577, allocations: 1.625 kB / 384.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2577, allocations: 1.219 kB / 384.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.2577, allocations: 1.797 kB / 384.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000679/0.2584, allocations: 0.5195 MB / 385.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2584, allocations: 0.5625 kB / 385.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.2585, allocations: 29.62 kB / 385.3 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001127/0.2587, allocations: 37.16 kB / 385.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.2587, allocations: 5.938 kB / 385.4 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007523/0.2594, allocations: 1.458 MB / 386.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2595, allocations: 0 / 386.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.26, allocations: 361.1 kB / 387.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.484e-05/0.2601, allocations: 104.3 kB / 387.3 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.2601, allocations: 9.078 kB / 387.3 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.2603, allocations: 21.59 kB / 387.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.586e-05/0.2604, allocations: 18.36 kB / 387.3 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2604, allocations: 7.219 kB / 387.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.26e-05/0.2605, allocations: 125.4 kB / 387.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.2605, allocations: 0 / 387.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.2608, allocations: 69.58 kB / 387.5 MB, free: 7.504 MB / 318.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.0007052/0.2616, allocations: 0.8839 MB / 388.4 MB, free: 6.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.2621, allocations: 252.6 kB / 388.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2621, allocations: 4 kB / 388.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.2623, allocations: 192.2 kB / 388.8 MB, free: 6.461 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.2627, allocations: 27.69 kB / 388.9 MB, free: 6.453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.2652, allocations: 2.213 MB / 391.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.2655, allocations: 0.7359 MB / 391.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.595e-05/0.2656, allocations: 18.39 kB / 391.8 MB, free: 4.102 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.691e-05/0.2656, allocations: 56.56 kB / 391.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2657, allocations: 0 / 391.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3892/0.6548, allocations: 4.616 MB / 396.5 MB, free: 3.242 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.73, allocations: 9.141 kB / 396.5 MB, free: 3.234 MB / 318.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