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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 101.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 188.4 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 43.94 kB / 371.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2217, allocations: 52.19 MB / 423.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003899/0.2256, allocations: 2.387 MB / 425.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.2267, allocations: 0.6078 MB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.2269, allocations: 4 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.227, allocations: 35.64 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.2272, allocations: 67.36 kB / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.2274, allocations: 67.91 kB / 426.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.2277, allocations: 266.8 kB / 426.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2279, allocations: 79.89 kB / 426.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.2281, allocations: 103.6 kB / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.2282, allocations: 107.5 kB / 427.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.2283, allocations: 20 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.209e-05/0.2284, allocations: 28 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.551e-05/0.2284, allocations: 47.84 kB / 427.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.2285, allocations: 99.52 kB / 427.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.2289, allocations: 261.2 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2289, allocations: 0 / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.2289, allocations: 4 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2289, allocations: 4 kB / 427.5 MB, free: 10.24 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.0009524/0.2298, allocations: 488.7 kB / 428 MB, free: 9.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2299, allocations: 12.03 kB / 428 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.395e-05/0.2299, allocations: 4.625 kB / 428 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.63e-05/0.23, allocations: 55.17 kB / 428.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.2301, allocations: 32.78 kB / 428.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.2304, allocations: 170.6 kB / 428.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.2304, allocations: 20.75 kB / 428.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.2304, allocations: 24.31 kB / 428.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004718/0.2309, allocations: 267.4 kB / 428.6 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2309, allocations: 7.953 kB / 428.6 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.231, allocations: 12 kB / 428.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.231, allocations: 4 kB / 428.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003758/0.2313, allocations: 157.7 kB / 428.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.2327, allocations: 0.7508 MB / 429.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.233, allocations: 150.5 kB / 429.6 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.2332, allocations: 72.77 kB / 429.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2332, allocations: 0 / 429.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.2333, allocations: 38.56 kB / 429.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 9.92e-07/0.2333, allocations: 4 kB / 429.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008082/0.2341, allocations: 254.2 kB / 430 MB, free: 7.586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.2341, allocations: 55.41 kB / 430.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.2343, allocations: 171.3 kB / 430.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.2343, allocations: 33.7 kB / 430.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.2344, allocations: 148.4 kB / 430.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.115e-05/0.2345, allocations: 63.58 kB / 430.5 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-05/0.2345, allocations: 37.72 kB / 430.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2347, allocations: 334.8 kB / 430.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2348, allocations: 51.97 kB / 430.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.235, allocations: 88.25 kB / 431 MB, free: 6.559 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.2353, allocations: 144.2 kB / 431.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2353, allocations: 0 / 431.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004571/0.2358, allocations: 225.1 kB / 431.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2358, allocations: 12.12 kB / 431.3 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.2358, allocations: 0 / 431.3 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.236, allocations: 32.83 kB / 431.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.2361, allocations: 31.98 kB / 431.4 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.2374, allocations: 1.354 MB / 432.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.2375, allocations: 39.83 kB / 432.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.2376, allocations: 4 kB / 432.8 MB, free: 4.582 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.0001283/0.2377, allocations: 142.8 kB / 432.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.2377, allocations: 19.84 kB / 433 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.738e-05/0.2378, allocations: 21.81 kB / 433 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.2378, allocations: 3.938 kB / 433 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.2378, allocations: 3.938 kB / 433 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2378, allocations: 3.984 kB / 433 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/0.2385, allocations: 482.2 kB / 433.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2385, allocations: 0 / 433.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.2387, allocations: 27.98 kB / 433.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.2388, allocations: 32.78 kB / 433.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.2388, allocations: 8 kB / 433.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.24, allocations: 1.351 MB / 434.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.24, allocations: 4.062 kB / 434.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006111/0.2406, allocations: 359.7 kB / 435.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.045e-05/0.2407, allocations: 24 kB / 435.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.2407, allocations: 8 kB / 435.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.2409, allocations: 20.03 kB / 435.3 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.241, allocations: 27.89 kB / 435.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.241, allocations: 4 kB / 435.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001091/0.2411, allocations: 131.2 kB / 435.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2411, allocations: 0 / 435.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.2414, allocations: 59.89 kB / 435.5 MB, free: 1.68 MB / 334.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.0009516/0.2424, allocations: 0.8849 MB / 436.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004959/0.2429, allocations: 250.5 kB / 436.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2429, allocations: 0 / 436.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.2431, allocations: 186.5 kB / 436.8 MB, free: 320 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2435, allocations: 36.17 kB / 436.8 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.2463, allocations: 2.215 MB / 439.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.2464, allocations: 125.4 kB / 439.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.062e-05/0.2465, allocations: 21.42 kB / 439.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.2466, allocations: 55.42 kB / 439.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2467, allocations: 0 / 439.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02924/0.2759, allocations: 4.912 MB / 444.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.35, allocations: 6.969 kB / 444.2 MB, free: 9.02 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [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.941404378972948]