Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 117.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001193, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2254, allocations: 50.55 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003556/0.229, allocations: 2.514 MB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.2302, allocations: 0.67 MB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.2303, allocations: 4 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.2305, allocations: 39.66 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.2306, allocations: 67.34 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.2309, allocations: 67.84 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002672/0.2312, allocations: 254.8 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.2314, allocations: 113 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2315, allocations: 95.66 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.2316, allocations: 111.5 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.2317, allocations: 24 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.889e-05/0.2318, allocations: 24 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.99e-05/0.2318, allocations: 43.84 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.2319, allocations: 123.5 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.2322, allocations: 263 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2322, allocations: 4 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2323, allocations: 0 / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2323, allocations: 0 / 413.1 MB, free: 13.12 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.000848/0.2331, allocations: 0.5458 MB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2332, allocations: 12.03 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.267e-05/0.2332, allocations: 51.17 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.2334, allocations: 36.64 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.2336, allocations: 228.3 kB / 414 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.2337, allocations: 20.81 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.2337, allocations: 20.38 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.2341, allocations: 237.9 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.2341, allocations: 0 / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.2342, allocations: 4 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.2342, allocations: 8 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/0.2345, allocations: 161.7 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.2358, allocations: 0.8126 MB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.2362, allocations: 162.6 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.2364, allocations: 76.83 kB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.2364, allocations: 4 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.2365, allocations: 46.5 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.126e-06/0.2365, allocations: 3.984 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007878/0.2373, allocations: 339.2 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.2373, allocations: 55.34 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.2375, allocations: 174.7 kB / 416.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2375, allocations: 29.69 kB / 416.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.72e-05/0.2376, allocations: 152 kB / 416.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.2376, allocations: 47.27 kB / 416.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.004e-05/0.2377, allocations: 45.61 kB / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.564e-05/0.2378, allocations: 330.8 kB / 416.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.2379, allocations: 51.97 kB / 416.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.2381, allocations: 91.81 kB / 416.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.2383, allocations: 147.5 kB / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2383, allocations: 4 kB / 417 MB, free: 8.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004329/0.2388, allocations: 218 kB / 417.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2388, allocations: 12.12 kB / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2388, allocations: 3.984 kB / 417.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001734/0.239, allocations: 32.84 kB / 417.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.2392, allocations: 27.98 kB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.2402, allocations: 1.469 MB / 418.7 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.2404, allocations: 35.78 kB / 418.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2404, allocations: 4 kB / 418.8 MB, free: 7.027 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.000108/0.2405, allocations: 141.8 kB / 418.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.2406, allocations: 15.81 kB / 418.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.228e-05/0.2406, allocations: 21.88 kB / 418.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2406, allocations: 0 / 418.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2406, allocations: 3.938 kB / 419 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2406, allocations: 3.984 kB / 419 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006964/0.2413, allocations: 0.5258 MB / 419.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2413, allocations: 144 / 419.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.2415, allocations: 23.98 kB / 419.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.2416, allocations: 44.81 kB / 419.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.2416, allocations: 0 / 419.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.2426, allocations: 1.469 MB / 421 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2426, allocations: 0 / 421 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.2432, allocations: 352 kB / 421.4 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.331e-05/0.2433, allocations: 100.9 kB / 421.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.2433, allocations: 8 kB / 421.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.2435, allocations: 19.92 kB / 421.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.2436, allocations: 20.03 kB / 421.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.2436, allocations: 4 kB / 421.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.2437, allocations: 132.2 kB / 421.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2437, allocations: 0 / 421.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.244, allocations: 59.84 kB / 421.7 MB, free: 3.852 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.00082/0.2448, allocations: 0.8848 MB / 422.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004732/0.2453, allocations: 258.5 kB / 422.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2453, allocations: 4.312 kB / 422.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002462/0.2456, allocations: 202.5 kB / 423 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.2459, allocations: 43.97 kB / 423.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.2483, allocations: 2.215 MB / 425.3 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.2486, allocations: 0.732 MB / 426 MB, free: 15.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.458e-05/0.2487, allocations: 21.53 kB / 426 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.397e-05/0.2488, allocations: 55.42 kB / 426.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2488, allocations: 0 / 426.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03162/0.2804, allocations: 4.593 MB / 430.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.974/9.255, allocations: 4 kB / 430.7 MB, free: 10.82 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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