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.00113/0.00113, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001162/0.001162, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.429/1.429, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001022, allocations: 49.92 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.09002, allocations: 49.45 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003839/0.09389, allocations: 2.489 MB / 352.7 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.09502, allocations: 0.6427 MB / 353.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.09519, allocations: 4 kB / 353.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.09534, allocations: 35.64 kB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.09554, allocations: 71.41 kB / 353.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.09581, allocations: 59.86 kB / 353.5 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.0961, allocations: 270.7 kB / 353.7 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.09631, allocations: 103.7 kB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.09645, allocations: 91.7 kB / 353.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.09661, allocations: 119.5 kB / 354 MB, free: 448 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.592e-05/0.09665, allocations: 20 kB / 354.1 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.518e-05/0.09674, allocations: 24 kB / 354.1 MB, free: 404 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.09679, allocations: 43.84 kB / 354.1 MB, free: 360 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.09691, allocations: 123.4 kB / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002852/0.0972, allocations: 251.1 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.09721, allocations: 0 / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09722, allocations: 4 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.986e-06/0.09723, allocations: 0 / 354.5 MB, free: 15.98 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.0009293/0.09817, allocations: 0.5459 MB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.09822, allocations: 8.031 kB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.027e-05/0.0983, allocations: 59.16 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.09841, allocations: 28.66 kB / 355.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.0987, allocations: 240.2 kB / 355.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.09873, allocations: 16.81 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.09878, allocations: 20.38 kB / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/0.0992, allocations: 238 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.09923, allocations: 4 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.09925, allocations: 8 kB / 355.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.09927, allocations: 4 kB / 355.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.09964, allocations: 157.6 kB / 355.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.1008, allocations: 0.8282 MB / 356.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.1012, allocations: 166.6 kB / 356.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.1014, allocations: 80.77 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.1014, allocations: 7.984 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1015, allocations: 38.48 kB / 356.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.1015, allocations: 0 / 356.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008062/0.1023, allocations: 339.2 kB / 357.2 MB, free: 13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.1023, allocations: 51.41 kB / 357.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.1025, allocations: 183.1 kB / 357.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1025, allocations: 25.7 kB / 357.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.783e-05/0.1026, allocations: 148.1 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.497e-05/0.1026, allocations: 67.2 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.1027, allocations: 37.7 kB / 357.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1028, allocations: 326.8 kB / 358.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.103, allocations: 51.97 kB / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.1032, allocations: 88.25 kB / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.1035, allocations: 147 kB / 358.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1035, allocations: 0 / 358.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004459/0.1039, allocations: 218 kB / 358.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1039, allocations: 11.98 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.104, allocations: 0 / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001773/0.1041, allocations: 32.84 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1043, allocations: 31.92 kB / 358.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.1054, allocations: 1.477 MB / 360.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.1056, allocations: 31.75 kB / 360.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.1057, allocations: 8 kB / 360.2 MB, free: 9.863 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.0001233/0.1058, allocations: 140.5 kB / 360.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.1058, allocations: 15.81 kB / 360.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.781e-05/0.1059, allocations: 21.94 kB / 360.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1059, allocations: 7.938 kB / 360.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1059, allocations: 7.922 kB / 360.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.1059, allocations: 144 / 360.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007184/0.1066, allocations: 0.507 MB / 360.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1067, allocations: 7.922 kB / 360.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.1068, allocations: 27.97 kB / 360.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.1069, allocations: 36.84 kB / 360.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.107, allocations: 0 / 360.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.108, allocations: 1.469 MB / 362.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.108, allocations: 0 / 362.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006158/0.1086, allocations: 354.5 kB / 362.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.1088, allocations: 108.8 kB / 362.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.1088, allocations: 4 kB / 362.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.109, allocations: 19.98 kB / 362.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.109, allocations: 19.97 kB / 362.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.1091, allocations: 4 kB / 362.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.836e-05/0.1092, allocations: 132.4 kB / 363 MB, free: 6.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1092, allocations: 0 / 363 MB, free: 6.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.1095, allocations: 59.84 kB / 363.1 MB, free: 6.691 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.0008241/0.1103, allocations: 0.8888 MB / 364 MB, free: 5.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005648/0.1109, allocations: 269.5 kB / 364.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1109, allocations: 0 / 364.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002636/0.1112, allocations: 190.9 kB / 364.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.1116, allocations: 35.91 kB / 364.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/0.1144, allocations: 2.206 MB / 366.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.1147, allocations: 0.7321 MB / 367.4 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1148, allocations: 25.47 kB / 367.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.905e-05/0.1149, allocations: 59.41 kB / 367.5 MB, free: 2.121 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1149, allocations: 3.938 kB / 367.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1852/0.3001, allocations: 4.414 MB / 371.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.387/9.687, allocations: 5.766 kB / 371.9 MB, free: 25.27 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