Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_0_0_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.001066/0.001066, allocations: 112 kB / 17.06 MB, free: 6 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.001134/0.001134, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2617, allocations: 49.43 MB / 400.2 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.004535/0.2663, allocations: 2.501 MB / 402.7 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2677, allocations: 0.6311 MB / 403.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.268, allocations: 4 kB / 403.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.2683, allocations: 35.64 kB / 403.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.2685, allocations: 71.34 kB / 403.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.2689, allocations: 67.86 kB / 403.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004843/0.2694, allocations: 270.8 kB / 403.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.2697, allocations: 97.25 kB / 403.9 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.2699, allocations: 103.6 kB / 404 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.2701, allocations: 103.5 kB / 404.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.943e-05/0.2702, allocations: 20 kB / 404.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.2703, allocations: 28 kB / 404.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.016e-05/0.2704, allocations: 51.83 kB / 404.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.2705, allocations: 115.4 kB / 404.3 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00044/0.271, allocations: 251.1 kB / 404.5 MB, free: 4.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.091e-05/0.271, allocations: 7.984 kB / 404.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.741e-06/0.271, allocations: 4 kB / 404.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.271, allocations: 3.938 kB / 404.6 MB, free: 4.621 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.001282/0.2723, allocations: 0.5419 MB / 405.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.2724, allocations: 8.031 kB / 405.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.2725, allocations: 63.16 kB / 405.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.2727, allocations: 28.66 kB / 405.2 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.2731, allocations: 232.3 kB / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.2731, allocations: 16.81 kB / 405.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.2732, allocations: 16.38 kB / 405.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.2737, allocations: 245.9 kB / 405.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.2737, allocations: 0 / 405.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.2738, allocations: 8 kB / 405.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.2738, allocations: 4 kB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/0.2742, allocations: 161.6 kB / 405.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.2757, allocations: 0.8127 MB / 406.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.2762, allocations: 162.5 kB / 406.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.2764, allocations: 84.75 kB / 406.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2764, allocations: 0 / 406.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.2765, allocations: 46.5 kB / 407 MB, free: 2.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 2.195e-06/0.2765, allocations: 4 kB / 407 MB, free: 2.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.000957/0.2775, allocations: 330.2 kB / 407.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.2775, allocations: 55.41 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.2777, allocations: 183.2 kB / 407.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.2777, allocations: 29.7 kB / 407.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.2778, allocations: 148 kB / 407.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/0.2779, allocations: 55.33 kB / 407.8 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.825e-05/0.2779, allocations: 41.61 kB / 407.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2781, allocations: 330.8 kB / 408.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.2783, allocations: 51.95 kB / 408.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.2784, allocations: 93.95 kB / 408.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.2787, allocations: 140.2 kB / 408.4 MB, free: 488 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.2787, allocations: 0 / 408.4 MB, free: 488 kB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004767/0.2792, allocations: 220.6 kB / 408.6 MB, free: 260 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2793, allocations: 7.938 kB / 408.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.2793, allocations: 7.938 kB / 408.6 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002032/0.2795, allocations: 32.97 kB / 408.7 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.2796, allocations: 35.97 kB / 408.7 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.2812, allocations: 1.48 MB / 410.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.2814, allocations: 27.83 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.2814, allocations: 4 kB / 410.2 MB, free: 14.51 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.0001552/0.2816, allocations: 129.8 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.2816, allocations: 19.88 kB / 410.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.2817, allocations: 25.86 kB / 410.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2817, allocations: 4 kB / 410.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.2817, allocations: 3.938 kB / 410.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2817, allocations: 0 / 410.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009585/0.2827, allocations: 0.5224 MB / 410.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2827, allocations: 0 / 410.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.2829, allocations: 31.98 kB / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.283, allocations: 28.84 kB / 411 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.283, allocations: 4 kB / 411 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.2843, allocations: 1.473 MB / 412.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2843, allocations: 0 / 412.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006118/0.2849, allocations: 356 kB / 412.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.285, allocations: 100.9 kB / 412.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.285, allocations: 4 kB / 412.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.2853, allocations: 23.91 kB / 412.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.447e-05/0.2853, allocations: 15.98 kB / 412.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.2854, allocations: 4 kB / 412.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001125/0.2855, allocations: 136.4 kB / 413.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2855, allocations: 3.938 kB / 413.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000352/0.2858, allocations: 55.84 kB / 413.1 MB, free: 11.33 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.0009097/0.2868, allocations: 0.896 MB / 414 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.2873, allocations: 262.5 kB / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2873, allocations: 0 / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.2876, allocations: 186.9 kB / 414.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.288, allocations: 35.92 kB / 414.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.291, allocations: 2.219 MB / 416.7 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.2915, allocations: 0.7398 MB / 417.5 MB, free: 6.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.73e-05/0.2916, allocations: 17.55 kB / 417.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.347e-05/0.2917, allocations: 55.42 kB / 417.5 MB, free: 6.746 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2917, allocations: 0 / 417.5 MB, free: 6.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02746/0.3191, allocations: 4.591 MB / 422.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.164/9.483, allocations: 11.08 kB / 422.1 MB, free: 2.309 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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