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.001011/0.001011, allocations: 102.6 kB / 16.51 MB, free: 6.641 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.001001/0.001001, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.244/1.244, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009471/0.0009472, allocations: 48.23 kB / 300.1 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09404/0.095, allocations: 49.45 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.004537/0.09957, allocations: 2.539 MB / 352 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.1009, allocations: 0.635 MB / 352.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.1012, allocations: 7.938 kB / 352.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.1014, allocations: 19.84 kB / 352.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.1016, allocations: 67.45 kB / 352.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.1019, allocations: 55.95 kB / 352.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003327/0.1023, allocations: 254.7 kB / 353.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1025, allocations: 91.58 kB / 353.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.1026, allocations: 87.7 kB / 353.3 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.1028, allocations: 107.5 kB / 353.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.1029, allocations: 15.94 kB / 353.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.828e-05/0.103, allocations: 24 kB / 353.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.099e-05/0.103, allocations: 35.84 kB / 353.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1032, allocations: 115.4 kB / 353.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.1035, allocations: 243.1 kB / 353.8 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1035, allocations: 0 / 353.8 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1035, allocations: 4 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1035, allocations: 0 / 353.8 MB, free: 460 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.001034/0.1045, allocations: 0.5483 MB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1046, allocations: 8.031 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.557e-05/0.1047, allocations: 63.16 kB / 354.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.1048, allocations: 24.66 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.1051, allocations: 236.3 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.1051, allocations: 16.81 kB / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.53e-05/0.1052, allocations: 20.38 kB / 354.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.1056, allocations: 238 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.1057, allocations: 3.938 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.1057, allocations: 11.94 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.1057, allocations: 4 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003905/0.1061, allocations: 161.6 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.1075, allocations: 0.8244 MB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.1079, allocations: 166.5 kB / 356.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.1081, allocations: 76.83 kB / 356.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.1082, allocations: 0 / 356.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.1082, allocations: 42.5 kB / 356.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.1082, allocations: 0 / 356.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008764/0.1091, allocations: 330.5 kB / 356.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.1091, allocations: 63.33 kB / 356.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.1093, allocations: 179.1 kB / 356.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.1094, allocations: 25.7 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.1095, allocations: 152.1 kB / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.1095, allocations: 55.27 kB / 357 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-05/0.1096, allocations: 45.7 kB / 357 MB, free: 12.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1097, allocations: 326.8 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.1099, allocations: 51.97 kB / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.1101, allocations: 92.19 kB / 357.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.1103, allocations: 142.5 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1104, allocations: 0 / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004658/0.1108, allocations: 222 kB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1109, allocations: 4 kB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1109, allocations: 4 kB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002005/0.1111, allocations: 36.83 kB / 357.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1112, allocations: 31.92 kB / 357.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.1124, allocations: 1.367 MB / 359.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.1126, allocations: 35.8 kB / 359.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.1127, allocations: 12 kB / 359.3 MB, free: 10.45 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.0001637/0.1128, allocations: 133.8 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.1129, allocations: 15.81 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.614e-05/0.1129, allocations: 21.88 kB / 359.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1129, allocations: 0 / 359.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1129, allocations: 0 / 359.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.113, allocations: 7.938 kB / 359.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000757/0.1137, allocations: 0.5185 MB / 360 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1137, allocations: 0 / 360 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.1139, allocations: 39.86 kB / 360.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000109/0.114, allocations: 28.83 kB / 360.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.114, allocations: 4 kB / 360.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.1151, allocations: 1.359 MB / 361.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1151, allocations: 4 kB / 361.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006331/0.1158, allocations: 360 kB / 361.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-05/0.1159, allocations: 100.9 kB / 361.9 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.1159, allocations: 12 kB / 361.9 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.1161, allocations: 24.03 kB / 362 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.628e-05/0.1162, allocations: 23.91 kB / 362 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.1162, allocations: 4 kB / 362 MB, free: 7.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1163, allocations: 123.2 kB / 362.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1163, allocations: 0 / 362.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.1167, allocations: 59.84 kB / 362.2 MB, free: 7.383 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.0009053/0.1176, allocations: 0.8886 MB / 363 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005286/0.1181, allocations: 267.8 kB / 363.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1181, allocations: 0 / 363.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.1184, allocations: 190.6 kB / 363.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.1188, allocations: 30.05 kB / 363.5 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.1216, allocations: 2.284 MB / 365.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.1219, allocations: 0.7359 MB / 366.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.685e-05/0.122, allocations: 13.55 kB / 366.6 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.636e-05/0.1221, allocations: 55.42 kB / 366.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1221, allocations: 0 / 366.6 MB, free: 2.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1713/0.2934, allocations: 4.108 MB / 370.7 MB, free: 24.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.2936, allocations: 238.6 kB / 371 MB, free: 24.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.09, allocations: 3.938 kB / 371 MB, free: 24.65 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