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.001067/0.001067, allocations: 102.6 kB / 17.72 MB, free: 5.371 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.001117/0.001117, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.278/1.278, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001166/0.001166, allocations: 47.94 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.08914, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.006497/0.09568, allocations: 2.47 MB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.09761, allocations: 0.6551 MB / 377.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.09786, allocations: 0 / 377.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.09814, allocations: 31.66 kB / 377.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002865/0.09844, allocations: 67.34 kB / 377.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.09885, allocations: 67.84 kB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.09933, allocations: 262.8 kB / 378.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/0.09966, allocations: 115.6 kB / 378.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.09987, allocations: 99.59 kB / 378.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.1001, allocations: 107.5 kB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.427e-05/0.1002, allocations: 20 kB / 378.5 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1003, allocations: 28 kB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.092e-05/0.1004, allocations: 51.83 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.1006, allocations: 119.5 kB / 378.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000456/0.1011, allocations: 259 kB / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1011, allocations: 0 / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1011, allocations: 0 / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1012, allocations: 0 / 378.9 MB, free: 0.75 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.001438/0.1026, allocations: 0.542 MB / 379.5 MB, free: 164 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1027, allocations: 8.031 kB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.1028, allocations: 59.11 kB / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.103, allocations: 28.64 kB / 379.6 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1664/0.2694, allocations: 223.9 kB / 379.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.2695, allocations: 19.25 kB / 379.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.171e-05/0.2696, allocations: 23.42 kB / 379.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.27, allocations: 230 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.2701, allocations: 1.062 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.2701, allocations: 9.203 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2701, allocations: 10.88 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003712/0.2705, allocations: 162.4 kB / 380.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.2718, allocations: 0.8207 MB / 381.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003911/0.2722, allocations: 159.1 kB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.2723, allocations: 81.42 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.2724, allocations: 1.938 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.2724, allocations: 36.78 kB / 381.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 3.908e-06/0.2724, allocations: 0.7188 kB / 381.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.000861/0.2733, allocations: 335.8 kB / 381.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.544e-05/0.2733, allocations: 58.8 kB / 381.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.2735, allocations: 179 kB / 381.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.2735, allocations: 30.45 kB / 381.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.341e-05/0.2736, allocations: 144.4 kB / 382.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.23e-05/0.2737, allocations: 59.09 kB / 382.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.984e-05/0.2737, allocations: 39.88 kB / 382.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.2738, allocations: 334.1 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.274, allocations: 52.33 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2742, allocations: 90.36 kB / 382.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003198/0.2745, allocations: 155.2 kB / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2745, allocations: 0 / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005237/0.2751, allocations: 214.6 kB / 383 MB, free: 11.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2751, allocations: 5.812 kB / 383 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2751, allocations: 2.203 kB / 383 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002224/0.2753, allocations: 34.8 kB / 383 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2755, allocations: 40.08 kB / 383.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009103/0.2764, allocations: 1.471 MB / 384.5 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.2766, allocations: 29.86 kB / 384.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.2767, allocations: 5.188 kB / 384.6 MB, free: 9.777 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.638e-05/0.2768, allocations: 144.5 kB / 384.7 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/0.2768, allocations: 19 kB / 384.7 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.801e-05/0.2769, allocations: 23.75 kB / 384.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2769, allocations: 2.125 kB / 384.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2769, allocations: 1.219 kB / 384.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2769, allocations: 1.875 kB / 384.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006678/0.2776, allocations: 0.5177 MB / 385.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2776, allocations: 1.156 kB / 385.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.2777, allocations: 29.05 kB / 385.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.2778, allocations: 37.91 kB / 385.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.2779, allocations: 5.281 kB / 385.4 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007876/0.2787, allocations: 1.458 MB / 386.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2787, allocations: 0.5156 kB / 386.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005789/0.2793, allocations: 359.9 kB / 387.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.056e-05/0.2793, allocations: 100.3 kB / 387.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.2794, allocations: 9.766 kB / 387.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.2796, allocations: 21.36 kB / 387.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.294e-05/0.2797, allocations: 17.62 kB / 387.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.2797, allocations: 8.25 kB / 387.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.2798, allocations: 128.6 kB / 387.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2798, allocations: 0 / 387.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.2801, allocations: 70.91 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.0007437/0.2809, allocations: 0.8873 MB / 388.4 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005019/0.2814, allocations: 256.1 kB / 388.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2814, allocations: 0 / 388.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.2817, allocations: 195.9 kB / 388.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.282, allocations: 24.61 kB / 388.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.2846, allocations: 2.209 MB / 391.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001809/0.2848, allocations: 0.7404 MB / 391.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.765e-05/0.2848, allocations: 15.91 kB / 391.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.002e-05/0.2849, allocations: 57.34 kB / 391.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2849, allocations: 1.625 kB / 391.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.3133, allocations: 4.602 MB / 396.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.215/9.528, allocations: 24.97 kB / 396.5 MB, free: 3.02 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