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.001069/0.001069, allocations: 117.8 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 207.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 55.91 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2549, allocations: 50.55 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003277/0.2583, allocations: 2.508 MB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.2593, allocations: 0.6779 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.2595, allocations: 7.938 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.2597, allocations: 35.64 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.2598, allocations: 63.41 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.2601, allocations: 67.8 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.2605, allocations: 266.8 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.2607, allocations: 109.1 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.2608, allocations: 95.69 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.2609, allocations: 107.5 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.202e-05/0.261, allocations: 31.94 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.776e-05/0.261, allocations: 28 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.19e-05/0.2611, allocations: 43.84 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.913e-05/0.2612, allocations: 119.5 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.2615, allocations: 255.1 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2615, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2615, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2615, allocations: 4 kB / 413.1 MB, free: 13.15 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.0008784/0.2624, allocations: 0.538 MB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2624, allocations: 12.03 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.059e-05/0.2625, allocations: 59.16 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.755e-05/0.2626, allocations: 32.66 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.2629, allocations: 236.3 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.263, allocations: 16.81 kB / 414 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.263, allocations: 24.38 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004051/0.2634, allocations: 230 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2634, allocations: 0 / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.2635, allocations: 8 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2635, allocations: 12 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/0.2638, allocations: 157.6 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.265, allocations: 0.8165 MB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.2654, allocations: 158.6 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.2656, allocations: 84.81 kB / 415.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.2656, allocations: 4 kB / 415.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.2656, allocations: 34.5 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.256e-06/0.2656, allocations: 0 / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008132/0.2664, allocations: 335.2 kB / 415.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.2665, allocations: 51.41 kB / 415.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.2666, allocations: 178.7 kB / 416.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.2667, allocations: 37.58 kB / 416.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.2667, allocations: 148 kB / 416.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.861e-05/0.2668, allocations: 55.27 kB / 416.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-05/0.2669, allocations: 49.61 kB / 416.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.267, allocations: 330.8 kB / 416.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.2671, allocations: 51.97 kB / 416.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.2673, allocations: 87.62 kB / 416.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.2676, allocations: 151 kB / 417 MB, free: 9.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2676, allocations: 8 kB / 417 MB, free: 9 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004343/0.268, allocations: 222 kB / 417.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.2681, allocations: 8 kB / 417.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.2681, allocations: 3.984 kB / 417.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.2683, allocations: 28.84 kB / 417.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.2684, allocations: 39.91 kB / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.2695, allocations: 1.465 MB / 418.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.2697, allocations: 35.91 kB / 418.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.2697, allocations: 4 kB / 418.8 MB, free: 7.039 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.0001138/0.2699, allocations: 133.8 kB / 418.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.2699, allocations: 19.75 kB / 418.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.27, allocations: 25.86 kB / 419 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-06/0.27, allocations: 0 / 419 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.27, allocations: 3.938 kB / 419 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.27, allocations: 0 / 419 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006948/0.2707, allocations: 0.5263 MB / 419.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2707, allocations: 0 / 419.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2709, allocations: 23.98 kB / 419.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.271, allocations: 32.84 kB / 419.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.271, allocations: 4 kB / 419.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000994/0.272, allocations: 1.469 MB / 421 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.272, allocations: 4.031 kB / 421 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.2726, allocations: 359.4 kB / 421.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.879e-05/0.2727, allocations: 96.94 kB / 421.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.2727, allocations: 8 kB / 421.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.2729, allocations: 24.03 kB / 421.5 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.273, allocations: 11.98 kB / 421.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.273, allocations: 11.94 kB / 421.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.547e-05/0.2731, allocations: 128.3 kB / 421.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2731, allocations: 0 / 421.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.2734, allocations: 63.84 kB / 421.7 MB, free: 3.863 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.0008308/0.2742, allocations: 0.8848 MB / 422.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005062/0.2747, allocations: 265.9 kB / 422.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2748, allocations: 0 / 422.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.275, allocations: 194.5 kB / 423 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.2754, allocations: 31.92 kB / 423.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.2779, allocations: 2.224 MB / 425.3 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.2782, allocations: 0.7359 MB / 426 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.181e-05/0.2783, allocations: 13.55 kB / 426 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.329e-05/0.2784, allocations: 51.42 kB / 426.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2784, allocations: 0 / 426.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1765/0.4549, allocations: 4.599 MB / 430.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.174/9.629, allocations: 2.25 kB / 430.7 MB, free: 10.85 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.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