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.00166/0.00166, allocations: 111.7 kB / 17.06 MB, free: 5.973 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.001479/0.001479, allocations: 200 kB / 18.01 MB, free: 5.047 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2348, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003704/0.2385, allocations: 2.501 MB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2397, allocations: 0.635 MB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.2399, allocations: 4 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.24, allocations: 31.64 kB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.2402, allocations: 71.34 kB / 403.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.2405, allocations: 71.84 kB / 403.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.2408, allocations: 266.8 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.241, allocations: 103.4 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.2411, allocations: 95.69 kB / 404 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.2413, allocations: 103.5 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.2413, allocations: 20 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.298e-05/0.2414, allocations: 28 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/0.2415, allocations: 55.77 kB / 404.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.2416, allocations: 119.4 kB / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003377/0.242, allocations: 254.1 kB / 404.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.242, allocations: 7.938 kB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.242, allocations: 0 / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.242, allocations: 0 / 404.6 MB, free: 4.457 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.0009803/0.243, allocations: 0.5534 MB / 405.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.243, allocations: 8.031 kB / 405.1 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.2431, allocations: 55.17 kB / 405.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.2432, allocations: 28.8 kB / 405.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.2436, allocations: 240 kB / 405.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.2436, allocations: 16.81 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.2436, allocations: 20.38 kB / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.2441, allocations: 238 kB / 405.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2441, allocations: 0 / 405.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.2441, allocations: 12 kB / 405.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.2442, allocations: 4 kB / 405.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004051/0.2446, allocations: 161.6 kB / 405.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.2459, allocations: 0.8168 MB / 406.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.2463, allocations: 170.4 kB / 406.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.2465, allocations: 80.81 kB / 406.9 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.2465, allocations: 0 / 406.9 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.2465, allocations: 42.5 kB / 407 MB, free: 1.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.2465, allocations: 4 kB / 407 MB, free: 1.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008764/0.2474, allocations: 330.7 kB / 407.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.2475, allocations: 55.41 kB / 407.4 MB, free: 1.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.2477, allocations: 183.2 kB / 407.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.2477, allocations: 33.7 kB / 407.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.2478, allocations: 144.3 kB / 407.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.2479, allocations: 63.55 kB / 407.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.2479, allocations: 37.7 kB / 407.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.2481, allocations: 330.8 kB / 408.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.2482, allocations: 55.95 kB / 408.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2484, allocations: 93.7 kB / 408.3 MB, free: 456 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.2487, allocations: 146.8 kB / 408.4 MB, free: 296 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2488, allocations: 0 / 408.4 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004697/0.2492, allocations: 226 kB / 408.6 MB, free: 60 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.2492, allocations: 4 kB / 408.7 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.2493, allocations: 4 kB / 408.7 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.2494, allocations: 32.95 kB / 408.7 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.2496, allocations: 39.92 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.2509, allocations: 1.473 MB / 410.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.2511, allocations: 27.88 kB / 410.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.2511, allocations: 4 kB / 410.2 MB, free: 14.33 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.0001286/0.2513, allocations: 125.9 kB / 410.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.2513, allocations: 19.91 kB / 410.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.846e-05/0.2514, allocations: 25.86 kB / 410.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2514, allocations: 4 kB / 410.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2514, allocations: 3.938 kB / 410.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2514, allocations: 0 / 410.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007715/0.2522, allocations: 0.5224 MB / 410.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2522, allocations: 0 / 410.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.2524, allocations: 35.92 kB / 411 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.2525, allocations: 32.83 kB / 411 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.2525, allocations: 8 kB / 411 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.2537, allocations: 1.469 MB / 412.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2537, allocations: 0 / 412.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006407/0.2544, allocations: 358.3 kB / 412.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.363e-05/0.2545, allocations: 105 kB / 412.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.2545, allocations: 4 kB / 412.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.2547, allocations: 23.97 kB / 413 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.2548, allocations: 15.97 kB / 413 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2548, allocations: 8 kB / 413 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.2549, allocations: 128.4 kB / 413.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2549, allocations: 0 / 413.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.2552, allocations: 59.89 kB / 413.2 MB, free: 11.14 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.0009628/0.2562, allocations: 0.8992 MB / 414.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005545/0.2568, allocations: 250.5 kB / 414.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2568, allocations: 0 / 414.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.2571, allocations: 194.9 kB / 414.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.2574, allocations: 31.92 kB / 414.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.2604, allocations: 2.224 MB / 416.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.2607, allocations: 0.7359 MB / 417.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.713e-05/0.2608, allocations: 17.55 kB / 417.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.732e-05/0.2609, allocations: 55.41 kB / 417.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2609, allocations: 0 / 417.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.2923, allocations: 4.528 MB / 422.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.937/10.23, allocations: 8.5 kB / 422.1 MB, free: 2.188 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