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.001938/0.001938, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002228/0.002228, allocations: 204.7 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 67.88 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2343, allocations: 50.55 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003649/0.238, allocations: 2.508 MB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2391, allocations: 0.6739 MB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.86e-05/0.2392, allocations: 4 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2394, allocations: 39.64 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.2395, allocations: 71.33 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.2398, allocations: 63.86 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.2401, allocations: 254.8 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.2403, allocations: 111.4 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.2404, allocations: 95.64 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.2406, allocations: 119.5 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.2406, allocations: 20 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.168e-05/0.2407, allocations: 32 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.2408, allocations: 43.84 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.2409, allocations: 115.5 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000332/0.2412, allocations: 266 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.2412, allocations: 0 / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2412, allocations: 0 / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.2413, allocations: 0 / 413.2 MB, free: 13.04 MB / 334.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.001006/0.2423, allocations: 0.5456 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.2423, allocations: 12.03 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.871e-05/0.2424, allocations: 59.11 kB / 413.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.2425, allocations: 28.75 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000348/0.2429, allocations: 240.4 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.2429, allocations: 16.81 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.243, allocations: 24.38 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.2434, allocations: 233.9 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2434, allocations: 0 / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.2435, allocations: 8 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2435, allocations: 8 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003991/0.2439, allocations: 157.7 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.2452, allocations: 0.8168 MB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003833/0.2456, allocations: 162.5 kB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.2458, allocations: 76.83 kB / 415.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.2458, allocations: 11.98 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.2459, allocations: 38.5 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.2459, allocations: 0 / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008675/0.2467, allocations: 339.3 kB / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.2468, allocations: 59.33 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.247, allocations: 174.7 kB / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.247, allocations: 29.7 kB / 416.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.953e-05/0.2471, allocations: 148.3 kB / 416.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.505e-05/0.2472, allocations: 63.55 kB / 416.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.2472, allocations: 37.7 kB / 416.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.2474, allocations: 334.8 kB / 416.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.2475, allocations: 51.97 kB / 416.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.2477, allocations: 91.81 kB / 416.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.248, allocations: 148.2 kB / 417.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2481, allocations: 0 / 417.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004589/0.2485, allocations: 222 kB / 417.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.2485, allocations: 8 kB / 417.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2486, allocations: 0 / 417.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.2487, allocations: 32.83 kB / 417.3 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.2489, allocations: 35.98 kB / 417.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.2502, allocations: 1.461 MB / 418.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.2504, allocations: 31.86 kB / 418.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.2504, allocations: 16.05 kB / 418.9 MB, free: 6.922 MB / 334.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.0001257/0.2506, allocations: 137.7 kB / 419 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.2506, allocations: 15.91 kB / 419 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.635e-05/0.2507, allocations: 21.88 kB / 419 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2507, allocations: 0 / 419 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.2507, allocations: 7.938 kB / 419 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2507, allocations: 4.125 kB / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007474/0.2514, allocations: 0.5224 MB / 419.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2515, allocations: 4 kB / 419.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.2516, allocations: 27.98 kB / 419.6 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.2517, allocations: 32.83 kB / 419.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.2517, allocations: 4 kB / 419.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.2529, allocations: 1.461 MB / 421.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2529, allocations: 0 / 421.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006331/0.2536, allocations: 357.6 kB / 421.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.365e-05/0.2537, allocations: 112.9 kB / 421.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.2537, allocations: 4 kB / 421.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.2539, allocations: 27.98 kB / 421.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.857e-05/0.254, allocations: 15.97 kB / 421.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.254, allocations: 4 kB / 421.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001061/0.2541, allocations: 128.2 kB / 421.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2541, allocations: 0 / 421.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.2544, allocations: 63.89 kB / 421.8 MB, free: 3.742 MB / 334.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.0009489/0.2554, allocations: 0.885 MB / 422.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005175/0.2559, allocations: 258.8 kB / 422.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2559, allocations: 0 / 422.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002808/0.2562, allocations: 198.5 kB / 423.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.2565, allocations: 38.66 kB / 423.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/0.2594, allocations: 2.231 MB / 425.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.2598, allocations: 0.732 MB / 426.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.457e-05/0.2599, allocations: 21.53 kB / 426.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.982e-05/0.26, allocations: 51.42 kB / 426.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.26, allocations: 0 / 426.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.2911, allocations: 4.515 MB / 430.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.3, allocations: 8 kB / 430.7 MB, free: 10.79 MB / 350.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.1.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