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.000722/0.000722, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008046/0.0008046, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001851/0.0001851, allocations: 4 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08085/0.08104, allocations: 51.53 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002562/0.08365, allocations: 2.193 MB / 361.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.08471, allocations: 0.6661 MB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.08484, allocations: 4 kB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.08496, allocations: 27.78 kB / 362.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.0851, allocations: 63.52 kB / 362.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.08531, allocations: 51.89 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.08558, allocations: 246.9 kB / 362.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.08579, allocations: 96.66 kB / 362.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.08591, allocations: 79.66 kB / 362.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.08605, allocations: 103.4 kB / 362.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.08608, allocations: 12 kB / 362.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.455e-05/0.08616, allocations: 16 kB / 362.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.342e-05/0.08621, allocations: 39.78 kB / 362.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.08632, allocations: 125.2 kB / 363.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.08657, allocations: 247 kB / 363.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.08659, allocations: 0 / 363.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.0866, allocations: 0 / 363.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.08661, allocations: 3.938 kB / 363.3 MB, free: 9.219 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.0008686/0.08748, allocations: 0.5187 MB / 363.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.08754, allocations: 8.031 kB / 363.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.806e-05/0.08763, allocations: 55.17 kB / 363.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.08774, allocations: 32.66 kB / 363.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.08801, allocations: 239.8 kB / 364.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.08804, allocations: 12.81 kB / 364.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.08809, allocations: 28.31 kB / 364.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.08853, allocations: 234 kB / 364.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.08856, allocations: 0 / 364.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.08859, allocations: 12 kB / 364.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.0886, allocations: 4 kB / 364.4 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004484/0.08905, allocations: 173.6 kB / 364.6 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.09032, allocations: 0.8321 MB / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.09069, allocations: 174.5 kB / 365.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.09088, allocations: 84.81 kB / 365.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.0909, allocations: 4 kB / 365.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.09093, allocations: 34.5 kB / 365.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.09093, allocations: 0 / 365.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007972/0.09174, allocations: 353.6 kB / 366.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.09178, allocations: 55.34 kB / 366.1 MB, free: 6.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.09193, allocations: 175.9 kB / 366.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.09196, allocations: 29.7 kB / 366.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.103e-05/0.09205, allocations: 148.1 kB / 366.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.852e-05/0.0921, allocations: 55.27 kB / 366.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.09214, allocations: 25.7 kB / 366.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.09225, allocations: 330.8 kB / 366.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.09241, allocations: 55.97 kB / 366.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.09259, allocations: 100.2 kB / 367 MB, free: 5.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.09291, allocations: 156.1 kB / 367.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.09292, allocations: 4 kB / 367.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004621/0.09339, allocations: 232.7 kB / 367.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.09342, allocations: 8.125 kB / 367.4 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.09343, allocations: 7.938 kB / 367.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.09361, allocations: 36.84 kB / 367.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.09378, allocations: 35.97 kB / 367.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.09487, allocations: 1.363 MB / 368.9 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.09507, allocations: 39.72 kB / 368.9 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.0951, allocations: 16.06 kB / 368.9 MB, free: 3.156 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.0001174/0.09522, allocations: 137.7 kB / 369.1 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/0.09526, allocations: 11.91 kB / 369.1 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.09532, allocations: 25.86 kB / 369.1 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.09533, allocations: 0 / 369.1 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.09534, allocations: 4 kB / 369.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.09534, allocations: 0 / 369.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007088/0.09606, allocations: 0.5302 MB / 369.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.09607, allocations: 4 kB / 369.6 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.09621, allocations: 31.98 kB / 369.7 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/0.09633, allocations: 36.72 kB / 369.7 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.09635, allocations: 8 kB / 369.7 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009308/0.09729, allocations: 1.359 MB / 371.1 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.0973, allocations: 0 / 371.1 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.0979, allocations: 368 kB / 371.4 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.492e-05/0.09799, allocations: 108.9 kB / 371.5 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.09802, allocations: 4 kB / 371.5 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.09822, allocations: 24.05 kB / 371.6 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-05/0.09828, allocations: 23.91 kB / 371.6 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.0983, allocations: 7.938 kB / 371.6 MB, free: 256 kB / 302.1 MB Notification: Performance of sorting global known variables: time 9.046e-05/0.09839, allocations: 139.5 kB / 371.7 MB, free: 116 kB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0984, allocations: 0 / 371.7 MB, free: 116 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.09869, allocations: 59.84 kB / 371.8 MB, free: 56 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.1529/0.2516, allocations: 0.8927 MB / 372.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006596/0.2523, allocations: 273.8 kB / 372.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2523, allocations: 0 / 372.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.2526, allocations: 199.8 kB / 373.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.253, allocations: 30.11 kB / 373.2 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.256, allocations: 2.359 MB / 375.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.2562, allocations: 0.7373 MB / 376.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.664e-05/0.2564, allocations: 15.38 kB / 376.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.2564, allocations: 57.48 kB / 376.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2564, allocations: 1.094 kB / 376.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.2729, allocations: 4.009 MB / 380.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001323/0.2731, allocations: 239.7 kB / 380.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/1.96, allocations: 0 / 380.6 MB, free: 15.57 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