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.001431/0.001431, allocations: 108.8 kB / 21.22 MB, free: 0.7305 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.001451/0.001451, allocations: 191.5 kB / 24.51 MB, free: 4.082 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.304/1.304, allocations: 225.6 MB / 253.3 MB, free: 13.23 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.001435/0.001435, allocations: 47.91 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2114, allocations: 52.18 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003552/0.2149, allocations: 2.531 MB / 425.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009916/0.2159, allocations: 0.6505 MB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.216, allocations: 4 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.2161, allocations: 35.66 kB / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.2163, allocations: 75.33 kB / 426.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.2165, allocations: 71.86 kB / 426.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.2168, allocations: 262.8 kB / 427 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2169, allocations: 79.69 kB / 427.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2171, allocations: 99.64 kB / 427.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2172, allocations: 111.5 kB / 427.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.2172, allocations: 20 kB / 427.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.299e-05/0.2173, allocations: 24 kB / 427.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.478e-05/0.2174, allocations: 55.83 kB / 427.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.2175, allocations: 115.4 kB / 427.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.2178, allocations: 256 kB / 427.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2178, allocations: 0 / 427.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2178, allocations: 3.938 kB / 427.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2178, allocations: 3.984 kB / 427.8 MB, free: 10.21 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.0008608/0.2186, allocations: 485.6 kB / 428.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.2187, allocations: 8.031 kB / 428.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.168e-05/0.2187, allocations: 8.625 kB / 428.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.813e-05/0.2188, allocations: 63.16 kB / 428.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.401e-05/0.2189, allocations: 28.8 kB / 428.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.2191, allocations: 174.6 kB / 428.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2192, allocations: 16.81 kB / 428.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.2192, allocations: 28.31 kB / 428.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.2196, allocations: 229.8 kB / 428.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.2196, allocations: 0 / 428.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.2197, allocations: 12 kB / 428.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.2197, allocations: 8 kB / 428.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.2201, allocations: 161.6 kB / 429 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.2213, allocations: 0.7975 MB / 429.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.2217, allocations: 146.5 kB / 429.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.2219, allocations: 76.77 kB / 430 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.2219, allocations: 0 / 430 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.2219, allocations: 38.56 kB / 430 MB, free: 7.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 9.72e-07/0.2219, allocations: 0 / 430 MB, free: 7.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007997/0.2227, allocations: 255.5 kB / 430.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.2227, allocations: 51.41 kB / 430.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.2229, allocations: 179.3 kB / 430.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.2229, allocations: 25.7 kB / 430.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.223, allocations: 156.4 kB / 430.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.976e-05/0.2231, allocations: 59.52 kB / 430.7 MB, free: 7.047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.224e-05/0.2231, allocations: 37.72 kB / 430.8 MB, free: 7.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2233, allocations: 334.8 kB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2234, allocations: 47.97 kB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.2236, allocations: 95.81 kB / 431.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.2239, allocations: 147.7 kB / 431.4 MB, free: 6.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2239, allocations: 0 / 431.4 MB, free: 6.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004481/0.2244, allocations: 226 kB / 431.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2244, allocations: 4 kB / 431.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.2244, allocations: 4 kB / 431.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001698/0.2245, allocations: 36.81 kB / 431.7 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.2247, allocations: 31.98 kB / 431.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.2259, allocations: 1.358 MB / 433 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.226, allocations: 39.86 kB / 433.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.226, allocations: 8 kB / 433.1 MB, free: 4.527 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.0001166/0.2262, allocations: 134.8 kB / 433.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.2262, allocations: 19.89 kB / 433.2 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.396e-05/0.2263, allocations: 21.81 kB / 433.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2263, allocations: 3.938 kB / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.2263, allocations: 0 / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2263, allocations: 0 / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007202/0.227, allocations: 0.492 MB / 433.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.227, allocations: 4 kB / 433.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.2271, allocations: 23.98 kB / 433.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.2272, allocations: 36.78 kB / 433.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.2272, allocations: 11.92 kB / 433.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.2283, allocations: 1.362 MB / 435.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2283, allocations: 0 / 435.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/0.2289, allocations: 348.2 kB / 435.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.229, allocations: 27.81 kB / 435.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.435e-05/0.229, allocations: 8 kB / 435.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.2292, allocations: 27.97 kB / 435.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.2292, allocations: 15.97 kB / 435.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.2292, allocations: 4 kB / 435.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.2293, allocations: 131.2 kB / 435.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2293, allocations: 0 / 435.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.2296, allocations: 55.89 kB / 435.8 MB, free: 1.617 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.0008893/0.2305, allocations: 0.8883 MB / 436.7 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005026/0.231, allocations: 254.8 kB / 436.9 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.231, allocations: 0 / 436.9 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.2313, allocations: 190.5 kB / 437.1 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.2316, allocations: 35.05 kB / 437.2 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.2344, allocations: 2.214 MB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.2347, allocations: 0.7399 MB / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.853e-05/0.2348, allocations: 9.484 kB / 440.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.567e-05/0.2349, allocations: 59.42 kB / 440.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2349, allocations: 0 / 440.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03402/0.2689, allocations: 4.716 MB / 444.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.89, allocations: 13.77 kB / 444.9 MB, free: 8.488 MB / 350.1 MB " [Timeout remaining time 649] (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.475277550984174]