Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 214.1 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 43.92 kB / 378.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2217, allocations: 53.36 MB / 431.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003601/0.2253, allocations: 2.408 MB / 434.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2263, allocations: 0.6467 MB / 434.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2264, allocations: 0 / 434.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.2266, allocations: 35.66 kB / 434.9 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.2267, allocations: 75.33 kB / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.2269, allocations: 67.86 kB / 435.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.2272, allocations: 254.8 kB / 435.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.2274, allocations: 71.89 kB / 435.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.2275, allocations: 107.6 kB / 435.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000154/0.2277, allocations: 111.5 kB / 435.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.29e-05/0.2277, allocations: 20 kB / 435.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.326e-05/0.2278, allocations: 27.98 kB / 435.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.2278, allocations: 51.84 kB / 435.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.2279, allocations: 103.5 kB / 435.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.2282, allocations: 257.3 kB / 436.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2282, allocations: 0 / 436.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2282, allocations: 0 / 436.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.2282, allocations: 0 / 436.1 MB, free: 2.453 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.0008729/0.2291, allocations: 481.6 kB / 436.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2292, allocations: 8.031 kB / 436.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.179e-05/0.2292, allocations: 12.61 kB / 436.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.989e-05/0.2293, allocations: 59.17 kB / 436.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.784e-05/0.2294, allocations: 28.75 kB / 436.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.2296, allocations: 182.5 kB / 436.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.2297, allocations: 24.75 kB / 436.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.403e-05/0.2297, allocations: 24.36 kB / 436.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.2302, allocations: 259.5 kB / 437.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2302, allocations: 0 / 437.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.2302, allocations: 11.98 kB / 437.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.2302, allocations: 8 kB / 437.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003691/0.2306, allocations: 157.6 kB / 437.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.2318, allocations: 0.747 MB / 438 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.2322, allocations: 150.6 kB / 438.2 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.2323, allocations: 80.69 kB / 438.3 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.2324, allocations: 4 kB / 438.3 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.2324, allocations: 30.56 kB / 438.3 MB, free: 60 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.192e-06/0.2324, allocations: 0 / 438.3 MB, free: 60 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007958/0.2332, allocations: 258.4 kB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.2332, allocations: 51.41 kB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.2334, allocations: 176.1 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.2334, allocations: 29.7 kB / 438.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.2335, allocations: 152.3 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.2336, allocations: 59.48 kB / 439 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.508e-05/0.2336, allocations: 37.7 kB / 439 MB, free: 15.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2338, allocations: 330.8 kB / 439.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.2339, allocations: 59.89 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.2341, allocations: 88.27 kB / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002842/0.2344, allocations: 139 kB / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2344, allocations: 0 / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004459/0.2348, allocations: 226.1 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.2348, allocations: 4 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2348, allocations: 0 / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001677/0.235, allocations: 32.84 kB / 439.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.2351, allocations: 39.91 kB / 439.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/0.2364, allocations: 1.366 MB / 441.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.2365, allocations: 31.84 kB / 441.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.2365, allocations: 8 kB / 441.3 MB, free: 12.79 MB / 350.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.0001169/0.2367, allocations: 125.8 kB / 441.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.403e-05/0.2367, allocations: 19.84 kB / 441.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.678e-05/0.2368, allocations: 29.86 kB / 441.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2368, allocations: 3.938 kB / 441.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2368, allocations: 4 kB / 441.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2368, allocations: 0 / 441.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000722/0.2375, allocations: 484.4 kB / 442 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2375, allocations: 0 / 442 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.2376, allocations: 31.91 kB / 442 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.2377, allocations: 28.84 kB / 442.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.2378, allocations: 8 kB / 442.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.2389, allocations: 1.366 MB / 443.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2389, allocations: 4 kB / 443.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.2395, allocations: 348.1 kB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.222e-05/0.2396, allocations: 27.98 kB / 443.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.2396, allocations: 8 kB / 443.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.2398, allocations: 19.98 kB / 443.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.2399, allocations: 19.95 kB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.2399, allocations: 7.938 kB / 443.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.24, allocations: 127.5 kB / 444 MB, free: 9.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.24, allocations: 0 / 444 MB, free: 9.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.2403, allocations: 63.89 kB / 444 MB, free: 9.891 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 ($outputAlias_TRes) * 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.0009492/0.2413, allocations: 0.8871 MB / 444.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005176/0.2418, allocations: 253.5 kB / 445.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2418, allocations: 320 / 445.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002658/0.2421, allocations: 194.6 kB / 445.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.2424, allocations: 29.98 kB / 445.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.2453, allocations: 2.231 MB / 447.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.2454, allocations: 125.2 kB / 447.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.297e-05/0.2455, allocations: 9.5 kB / 447.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.496e-05/0.2456, allocations: 63.41 kB / 447.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2456, allocations: 0 / 447.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.2742, allocations: 4.936 MB / 452.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.17, allocations: 4.062 kB / 452.8 MB, free: 1.199 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,heatCapacitor.T,onOffController.y Variables in the result:TAmb,TDif,TRes,_D_outputAlias_TRes,constantVoltage.V,constantVoltage.i,constantVoltage.n.i,constantVoltage.n.v,constantVoltage.p.i,constantVoltage.p.v,constantVoltage.v,der(_D_outputAlias_TRes),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 [Calling sys.exit(0), Time elapsed: 13.795746760908514]