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.001455/0.001455, allocations: 113.2 kB / 17.73 MB, free: 5.309 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.00149/0.00149, allocations: 188.2 kB / 18.67 MB, free: 4.383 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.348/1.348, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001576/0.001576, allocations: 59.91 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08543, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.00383/0.08929, allocations: 2.459 MB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.09044, allocations: 0.6512 MB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.09058, allocations: 4 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.09072, allocations: 35.64 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.09086, allocations: 71.34 kB / 377.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.09109, allocations: 59.91 kB / 377.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.0914, allocations: 266.8 kB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.09163, allocations: 107.4 kB / 378.3 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.09177, allocations: 99.58 kB / 378.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.09193, allocations: 111.5 kB / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.2e-05/0.09202, allocations: 20 kB / 378.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.715e-05/0.09212, allocations: 24 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.933e-05/0.09217, allocations: 47.83 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.0923, allocations: 115.5 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.09266, allocations: 270.8 kB / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09267, allocations: 0 / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09268, allocations: 0 / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.09269, 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.001026/0.09372, allocations: 0.5417 MB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.09376, allocations: 12.03 kB / 379.5 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.504e-05/0.09387, allocations: 63.11 kB / 379.6 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.886e-05/0.09397, allocations: 24.8 kB / 379.6 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1457/0.2396, allocations: 234.7 kB / 379.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2397, allocations: 15.69 kB / 379.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.2397, allocations: 20.89 kB / 379.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000434/0.2402, allocations: 236.4 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.2402, allocations: 1.312 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.2402, allocations: 8.422 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.2402, allocations: 7.812 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000355/0.2406, allocations: 164.4 kB / 380.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.2417, allocations: 0.8168 MB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003548/0.2421, allocations: 169.3 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.2423, allocations: 78.39 kB / 381.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.2423, allocations: 2.625 kB / 381.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.2423, allocations: 32.44 kB / 381.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.883e-06/0.2423, allocations: 0 / 381.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008005/0.2431, allocations: 340.8 kB / 381.7 MB, free: 12.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.087e-05/0.2432, allocations: 54.92 kB / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.2433, allocations: 181.6 kB / 381.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.2433, allocations: 30.14 kB / 381.9 MB, free: 11.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.401e-05/0.2434, allocations: 147.1 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.2435, allocations: 62.5 kB / 382.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.674e-05/0.2435, allocations: 39.55 kB / 382.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.256e-05/0.2436, allocations: 326.3 kB / 382.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.2438, allocations: 59.78 kB / 382.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.244, allocations: 97.8 kB / 382.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.2443, allocations: 145.2 kB / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2443, allocations: 0 / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004883/0.2448, allocations: 218 kB / 383 MB, free: 11.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.2448, allocations: 5.562 kB / 383 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.2448, allocations: 1.75 kB / 383 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.245, allocations: 40.62 kB / 383.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.2452, allocations: 35.67 kB / 383.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008623/0.246, allocations: 1.476 MB / 384.6 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.2462, allocations: 35.16 kB / 384.6 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.2462, allocations: 4.5 kB / 384.6 MB, free: 9.766 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 9.35e-05/0.2463, allocations: 135.3 kB / 384.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.2464, allocations: 16.98 kB / 384.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.037e-05/0.2464, allocations: 26.55 kB / 384.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2464, allocations: 2.766 kB / 384.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2465, allocations: 5.062 kB / 384.8 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2465, allocations: 1.219 kB / 384.8 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000657/0.2471, allocations: 0.5123 MB / 385.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2471, allocations: 1.312 kB / 385.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.2473, allocations: 32.88 kB / 385.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.2474, allocations: 36.8 kB / 385.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.2474, allocations: 1.469 kB / 385.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000825/0.2483, allocations: 1.469 MB / 386.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2483, allocations: 0 / 386.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.2489, allocations: 353 kB / 387.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.2489, allocations: 104.1 kB / 387.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.249, allocations: 5.938 kB / 387.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.2491, allocations: 24.48 kB / 387.3 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.2492, allocations: 19.08 kB / 387.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.2492, allocations: 2.812 kB / 387.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.143e-05/0.2493, allocations: 132.5 kB / 387.5 MB, free: 7.297 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2493, allocations: 1.219 kB / 387.5 MB, free: 7.297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.2496, allocations: 59.05 kB / 387.5 MB, free: 7.285 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.0007353/0.2504, allocations: 0.8917 MB / 388.4 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005183/0.2509, allocations: 263.5 kB / 388.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2509, allocations: 0 / 388.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.2512, allocations: 199 kB / 388.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.2515, allocations: 26.83 kB / 388.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.2538, allocations: 2.221 MB / 391.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.254, allocations: 0.7358 MB / 391.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.216e-05/0.2541, allocations: 16.78 kB / 391.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.247e-05/0.2542, allocations: 56.25 kB / 391.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2542, allocations: 1 kB / 391.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03128/0.2855, allocations: 4.54 MB / 396.5 MB, free: 3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.715/10, allocations: 9.328 kB / 396.5 MB, free: 2.992 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