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.001043/0.001043, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.83 kB / 306.3 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.0868, allocations: 50.54 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003872/0.09071, allocations: 2.559 MB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.09209, allocations: 0.6738 MB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.09231, allocations: 4 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.09256, allocations: 23.83 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.09275, allocations: 59.48 kB / 360.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.09302, allocations: 51.94 kB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.09332, allocations: 254.8 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.09353, allocations: 96.64 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.09368, allocations: 87.66 kB / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.09384, allocations: 111.5 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.09389, allocations: 20 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.818e-05/0.09399, allocations: 16 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.09403, allocations: 39.84 kB / 360.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.09415, allocations: 111.5 kB / 361 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.09445, allocations: 247.1 kB / 361.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.09447, allocations: 0 / 361.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09448, allocations: 7.938 kB / 361.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.09449, allocations: 0 / 361.2 MB, free: 9.828 MB / 302.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.0009512/0.09545, allocations: 0.5381 MB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.0955, allocations: 12.03 kB / 361.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.262e-05/0.0956, allocations: 55.17 kB / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.09571, allocations: 36.59 kB / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/0.09597, allocations: 228.3 kB / 362.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.09599, allocations: 16.81 kB / 362.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.09603, allocations: 20.38 kB / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.09646, allocations: 233.9 kB / 362.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.09648, allocations: 0 / 362.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.09652, allocations: 15.98 kB / 362.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.09654, allocations: 8 kB / 362.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003785/0.09692, allocations: 161.6 kB / 362.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.09821, allocations: 0.8204 MB / 363.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.09859, allocations: 158.5 kB / 363.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.09879, allocations: 76.81 kB / 363.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.09881, allocations: 4 kB / 363.6 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.09885, allocations: 46.5 kB / 363.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/0.09886, allocations: 3.938 kB / 363.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008193/0.09968, allocations: 325.6 kB / 364 MB, free: 6.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.09973, allocations: 59.34 kB / 364 MB, free: 6.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.09989, allocations: 183.9 kB / 364.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.09993, allocations: 29.7 kB / 364.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.889e-05/0.1, allocations: 148.1 kB / 364.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.1001, allocations: 55.2 kB / 364.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.096e-05/0.1002, allocations: 37.7 kB / 364.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1003, allocations: 330.8 kB / 364.8 MB, free: 6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.1004, allocations: 59.95 kB / 364.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.1006, allocations: 87.64 kB / 364.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.1009, allocations: 147.2 kB / 365.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1009, allocations: 0 / 365.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004455/0.1013, allocations: 214 kB / 365.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1014, allocations: 12.06 kB / 365.3 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1014, allocations: 4 kB / 365.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002006/0.1016, allocations: 40.83 kB / 365.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.1017, allocations: 39.92 kB / 365.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.1029, allocations: 1.355 MB / 366.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.1031, allocations: 35.75 kB / 366.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.1031, allocations: 8 kB / 366.8 MB, free: 3.836 MB / 302.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.0001294/0.1032, allocations: 137.8 kB / 366.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.1033, allocations: 15.81 kB / 366.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.171e-05/0.1033, allocations: 29.8 kB / 367 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1033, allocations: 4 kB / 367 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1033, allocations: 0 / 367 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1033, allocations: 3.938 kB / 367 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007232/0.1041, allocations: 0.5186 MB / 367.5 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1041, allocations: 4 kB / 367.5 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.1042, allocations: 27.92 kB / 367.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.1043, allocations: 24.84 kB / 367.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1044, allocations: 12 kB / 367.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009304/0.1053, allocations: 1.363 MB / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1053, allocations: 0 / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.1059, allocations: 355.3 kB / 369.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.106, allocations: 108.9 kB / 369.4 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.106, allocations: 4 kB / 369.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.1062, allocations: 19.98 kB / 369.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.167e-05/0.1063, allocations: 19.91 kB / 369.4 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.1063, allocations: 4 kB / 369.4 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.1064, allocations: 143.5 kB / 369.5 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1064, allocations: 0 / 369.5 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.1067, allocations: 55.84 kB / 369.6 MB, free: 0.7695 MB / 302.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.1553/0.262, allocations: 0.8816 MB / 370.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005535/0.2626, allocations: 259.9 kB / 370.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.2626, allocations: 0.75 kB / 370.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.2629, allocations: 191 kB / 370.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.2633, allocations: 34.53 kB / 371 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.2658, allocations: 2.289 MB / 373.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.266, allocations: 0.7323 MB / 374 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.738e-05/0.2661, allocations: 16.14 kB / 374 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.266e-05/0.2662, allocations: 54.08 kB / 374 MB, free: 17.39 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2662, allocations: 0.625 kB / 374 MB, free: 17.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.2828, allocations: 4.099 MB / 378.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/0.283, allocations: 242 kB / 378.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/1.965, allocations: 7.234 kB / 378.4 MB, free: 16.78 MB / 302.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