Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000792/0.0007921, allocations: 175.2 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006719/0.000672, allocations: 93.34 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2055, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002205/0.2078, allocations: 2.077 MB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008707/0.2087, allocations: 0.6149 MB / 377.9 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2088, allocations: 11.16 kB / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.2089, allocations: 19.22 kB / 377.9 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.209, allocations: 63.06 kB / 378 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2093, allocations: 48.25 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.2095, allocations: 246 kB / 378.3 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2097, allocations: 86.48 kB / 378.3 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2098, allocations: 82.44 kB / 378.4 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.2099, allocations: 87.23 kB / 378.5 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.092e-05/0.21, allocations: 11.84 kB / 378.5 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.83e-05/0.2101, allocations: 21.03 kB / 378.5 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.2101, allocations: 34.12 kB / 378.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.755e-05/0.2102, allocations: 126.7 kB / 378.7 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.2104, allocations: 184 kB / 378.9 MB, free: 42.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2104, allocations: 0 / 378.9 MB, free: 42.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2104, allocations: 0 / 378.9 MB, free: 42.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.2104, allocations: 1.062 kB / 378.9 MB, free: 42.61 MB / 298.7 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.0007782/0.2112, allocations: 0.5232 MB / 379.4 MB, free: 42.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2113, allocations: 9.5 kB / 379.4 MB, free: 42.13 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.29e-05/0.2113, allocations: 58.59 kB / 379.5 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.941e-05/0.2114, allocations: 26.06 kB / 379.5 MB, free: 42.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.2117, allocations: 239.1 kB / 379.7 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.2117, allocations: 16.53 kB / 379.7 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.296e-05/0.2117, allocations: 26.59 kB / 379.8 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000412/0.2122, allocations: 237.4 kB / 380 MB, free: 41.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.2122, allocations: 0 / 380 MB, free: 41.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.2122, allocations: 10.12 kB / 380 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.2122, allocations: 5.25 kB / 380 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003634/0.2126, allocations: 170.6 kB / 380.2 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.2137, allocations: 0.8327 MB / 381 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003712/0.2141, allocations: 165.2 kB / 381.2 MB, free: 40.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.2142, allocations: 85.86 kB / 381.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.2143, allocations: 5.172 kB / 381.3 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.2143, allocations: 35.66 kB / 381.3 MB, free: 40.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.243e-06/0.2143, allocations: 0 / 381.3 MB, free: 40.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007833/0.2151, allocations: 353.2 kB / 381.6 MB, free: 40.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.064e-05/0.2151, allocations: 56.94 kB / 381.7 MB, free: 40.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.2152, allocations: 180.2 kB / 381.9 MB, free: 40.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.2153, allocations: 30.98 kB / 381.9 MB, free: 40.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.883e-05/0.2153, allocations: 147.2 kB / 382.1 MB, free: 40.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.308e-05/0.2154, allocations: 54.08 kB / 382.1 MB, free: 39.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-06/0.2154, allocations: 5.25 kB / 382.1 MB, free: 39.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.2154, allocations: 329.3 kB / 382.4 MB, free: 39.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.2156, allocations: 61.14 kB / 382.5 MB, free: 39.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.2157, allocations: 99.3 kB / 382.6 MB, free: 39.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.216, allocations: 150.7 kB / 382.7 MB, free: 39.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.216, allocations: 1.156 kB / 382.7 MB, free: 39.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004223/0.2165, allocations: 228.8 kB / 383 MB, free: 39.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2165, allocations: 5.031 kB / 383 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2165, allocations: 1.875 kB / 383 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.2167, allocations: 40.22 kB / 383 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.2168, allocations: 39.94 kB / 383 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008524/0.2177, allocations: 1.366 MB / 384.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.2179, allocations: 38.53 kB / 384.4 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.2179, allocations: 13.62 kB / 384.5 MB, free: 37.86 MB / 298.7 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 ($PRE.onOffController.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.989e-05/0.218, allocations: 135.3 kB / 384.6 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.709e-05/0.2181, allocations: 15.78 kB / 384.6 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.2181, allocations: 21.89 kB / 384.6 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2181, allocations: 1.312 kB / 384.6 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2181, allocations: 1.312 kB / 384.6 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2181, allocations: 0 / 384.6 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006566/0.2188, allocations: 0.5313 MB / 385.2 MB, free: 37.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2188, allocations: 0 / 385.2 MB, free: 37.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.219, allocations: 34.33 kB / 385.2 MB, free: 37.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001027/0.2191, allocations: 35.56 kB / 385.2 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.2191, allocations: 8 kB / 385.2 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007656/0.2199, allocations: 1.36 MB / 386.6 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2199, allocations: 1.25 kB / 386.6 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005966/0.2205, allocations: 365.2 kB / 387 MB, free: 35.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.2206, allocations: 103.7 kB / 387.1 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.2206, allocations: 5 kB / 387.1 MB, free: 35.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.2208, allocations: 22.33 kB / 387.1 MB, free: 35.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.2209, allocations: 31.09 kB / 387.1 MB, free: 35.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.2209, allocations: 3.125 kB / 387.1 MB, free: 35.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.747e-05/0.221, allocations: 129.4 kB / 387.2 MB, free: 35.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.221, allocations: 0 / 387.2 MB, free: 35.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003213/0.2213, allocations: 58.25 kB / 387.3 MB, free: 35.31 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007766/0.2221, allocations: 0.9036 MB / 388.2 MB, free: 34.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.2226, allocations: 277 kB / 388.5 MB, free: 34.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2226, allocations: 0 / 388.5 MB, free: 34.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.2229, allocations: 197.8 kB / 388.7 MB, free: 34.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.2232, allocations: 27.83 kB / 388.7 MB, free: 34.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.2249, allocations: 1.279 MB / 390 MB, free: 33.08 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.2251, allocations: 0.736 MB / 390.7 MB, free: 32.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.448e-05/0.2252, allocations: 55.42 kB / 390.8 MB, free: 32.27 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2252, allocations: 0 / 390.8 MB, free: 32.27 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.003/3.228, allocations: 3.794 MB / 394.6 MB, free: 28.47 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_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.off,idealSwitch.p.i,idealSwitch.p.v,idealSwitch.s,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