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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 114.6 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 39.25 kB / 300.2 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09964, allocations: 49.45 MB / 349.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.004184/0.1039, allocations: 2.543 MB / 352.2 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1051, allocations: 0.6312 MB / 352.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.1053, allocations: 4 kB / 352.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.1055, allocations: 27.77 kB / 352.9 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.1057, allocations: 63.42 kB / 353 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.106, allocations: 55.94 kB / 353 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003289/0.1063, allocations: 270.8 kB / 353.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.1065, allocations: 103.7 kB / 353.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.1067, allocations: 87.72 kB / 353.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.1069, allocations: 111.5 kB / 353.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.1069, allocations: 24 kB / 353.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.773e-05/0.107, allocations: 31.92 kB / 353.6 MB, free: 476 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.476e-05/0.1071, allocations: 51.77 kB / 353.7 MB, free: 424 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.1072, allocations: 115.5 kB / 353.8 MB, free: 308 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.1075, allocations: 255.1 kB / 354 MB, free: 52 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1075, allocations: 0 / 354 MB, free: 52 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1075, allocations: 0 / 354 MB, free: 52 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.1075, allocations: 0 / 354 MB, free: 52 kB / 286.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.0009997/0.1085, allocations: 0.542 MB / 354.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1086, allocations: 8.031 kB / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.1087, allocations: 59.11 kB / 354.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.1088, allocations: 28.66 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.1091, allocations: 236.3 kB / 354.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1091, allocations: 16.75 kB / 354.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.1092, allocations: 24.38 kB / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004404/0.1096, allocations: 230 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1096, allocations: 0 / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.1097, allocations: 8 kB / 355.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.1097, allocations: 15.98 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003807/0.1101, allocations: 157.6 kB / 355.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.1114, allocations: 0.8205 MB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003755/0.1118, allocations: 170.5 kB / 356.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.112, allocations: 80.81 kB / 356.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.112, allocations: 0 / 356.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.112, allocations: 42.5 kB / 356.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.082e-06/0.112, allocations: 0 / 356.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.000833/0.1129, allocations: 331.2 kB / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.1129, allocations: 59.41 kB / 356.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.1131, allocations: 175.1 kB / 357 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.1131, allocations: 33.7 kB / 357 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.392e-05/0.1132, allocations: 144.1 kB / 357.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.1133, allocations: 55.2 kB / 357.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.207e-05/0.1133, allocations: 37.7 kB / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1135, allocations: 326.8 kB / 357.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1136, allocations: 63.95 kB / 357.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1138, allocations: 92.2 kB / 357.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.1141, allocations: 140.2 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1141, allocations: 0 / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004568/0.1146, allocations: 225.1 kB / 358.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.1146, allocations: 4.125 kB / 358.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1146, allocations: 4 kB / 358.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.1148, allocations: 36.83 kB / 358.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.115, allocations: 35.92 kB / 358.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.1161, allocations: 1.469 MB / 359.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.1163, allocations: 39.77 kB / 359.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.1164, allocations: 8 kB / 359.7 MB, free: 9.941 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.0001137/0.1165, allocations: 129.8 kB / 359.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.036e-05/0.1165, allocations: 19.8 kB / 359.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.1166, allocations: 21.88 kB / 359.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1166, allocations: 3.938 kB / 359.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1166, allocations: 3.938 kB / 359.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1166, allocations: 0 / 359.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007226/0.1173, allocations: 0.5187 MB / 360.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1174, allocations: 0 / 360.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.1175, allocations: 31.92 kB / 360.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/0.1176, allocations: 32.83 kB / 360.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1177, allocations: 8 kB / 360.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.1188, allocations: 1.469 MB / 361.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1188, allocations: 12 kB / 361.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006323/0.1195, allocations: 351.2 kB / 362.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.744e-05/0.1196, allocations: 100.9 kB / 362.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.1196, allocations: 8.125 kB / 362.4 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.1198, allocations: 23.97 kB / 362.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.685e-05/0.1199, allocations: 19.97 kB / 362.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.1199, allocations: 0 / 362.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001062/0.12, allocations: 127.2 kB / 362.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.12, allocations: 0 / 362.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.1204, allocations: 63.84 kB / 362.6 MB, free: 6.766 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.0009115/0.1213, allocations: 0.8864 MB / 363.5 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005475/0.1219, allocations: 278.5 kB / 363.8 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1219, allocations: 0 / 363.8 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.1222, allocations: 182.7 kB / 363.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.1226, allocations: 38.58 kB / 364 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.1255, allocations: 2.278 MB / 366.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.1259, allocations: 0.7398 MB / 367 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.92e-05/0.126, allocations: 17.55 kB / 367 MB, free: 2.176 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.555e-05/0.1261, allocations: 63.34 kB / 367.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1261, allocations: 0 / 367.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1583/0.2844, allocations: 4.244 MB / 371.3 MB, free: 25.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/0.2846, allocations: 235.4 kB / 371.6 MB, free: 25.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.147, allocations: 6.828 kB / 371.6 MB, free: 25.42 MB / 302.1 MB (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 --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) 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) "" 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