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.001302/0.001303, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 55.97 kB / 306.5 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 50.54 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.004005/0.1095, allocations: 2.559 MB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1109, allocations: 0.6777 MB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002064/0.1111, allocations: 4 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1114, allocations: 23.77 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.1117, allocations: 55.55 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.112, allocations: 59.88 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003682/0.1124, allocations: 258.9 kB / 360.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.1126, allocations: 107.7 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.1128, allocations: 95.66 kB / 360.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.113, allocations: 115.5 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.113, allocations: 20 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.889e-05/0.1131, allocations: 24 kB / 361.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.502e-05/0.1131, allocations: 55.77 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.1133, allocations: 111.5 kB / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.1136, allocations: 259 kB / 361.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1136, allocations: 0 / 361.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1136, allocations: 4 kB / 361.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1136, allocations: 0 / 361.5 MB, free: 9.891 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.0009582/0.1146, allocations: 0.5459 MB / 362 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1146, allocations: 8.031 kB / 362 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.975e-05/0.1147, allocations: 55.17 kB / 362.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.1148, allocations: 28.66 kB / 362.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.1151, allocations: 228.3 kB / 362.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.1151, allocations: 16.81 kB / 362.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.993e-05/0.1152, allocations: 24.31 kB / 362.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.1156, allocations: 241.9 kB / 362.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1156, allocations: 0 / 362.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.1156, allocations: 12 kB / 362.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1157, allocations: 4 kB / 362.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003533/0.116, allocations: 153.7 kB / 362.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.1172, allocations: 0.8243 MB / 363.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.1176, allocations: 170.5 kB / 363.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.1178, allocations: 80.81 kB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.1178, allocations: 4 kB / 363.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.1178, allocations: 34.5 kB / 363.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.623e-06/0.1179, allocations: 0 / 363.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009263/0.1188, allocations: 333.8 kB / 364.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.1189, allocations: 55.34 kB / 364.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.1191, allocations: 179.9 kB / 364.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.1191, allocations: 29.7 kB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.1192, allocations: 144.1 kB / 364.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.1193, allocations: 63.19 kB / 364.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.929e-05/0.1194, allocations: 33.72 kB / 364.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1195, allocations: 334.8 kB / 365 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.1197, allocations: 55.91 kB / 365.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.1199, allocations: 87.44 kB / 365.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.1202, allocations: 148.1 kB / 365.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1202, allocations: 0 / 365.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004933/0.1207, allocations: 224.7 kB / 365.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.1207, allocations: 8 kB / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1207, allocations: 0 / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.121, allocations: 32.83 kB / 365.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.1211, allocations: 31.98 kB / 365.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.1224, allocations: 1.481 MB / 367.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.1226, allocations: 31.86 kB / 367.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.1226, allocations: 4 kB / 367.1 MB, free: 3.789 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.0001298/0.1228, allocations: 138.8 kB / 367.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.404e-05/0.1228, allocations: 19.81 kB / 367.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.514e-05/0.1229, allocations: 21.94 kB / 367.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.1229, allocations: 4 kB / 367.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1229, allocations: 3.938 kB / 367.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1229, allocations: 7.922 kB / 367.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007323/0.1236, allocations: 0.5186 MB / 367.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1236, allocations: 0 / 367.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.1238, allocations: 27.98 kB / 367.9 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.1239, allocations: 36.77 kB / 367.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1239, allocations: 8 kB / 367.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.125, allocations: 1.461 MB / 369.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.125, allocations: 3.938 kB / 369.4 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005684/0.1256, allocations: 348.1 kB / 369.7 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.079e-05/0.1257, allocations: 104.9 kB / 369.8 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.1257, allocations: 7.984 kB / 369.8 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.1259, allocations: 19.98 kB / 369.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.126, allocations: 23.97 kB / 369.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.126, allocations: 8 kB / 369.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.758e-05/0.1261, allocations: 131.5 kB / 370 MB, free: 0.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1261, allocations: 0 / 370 MB, free: 0.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003095/0.1264, allocations: 59.84 kB / 370.1 MB, free: 0.6094 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.2135/0.3399, allocations: 0.8837 MB / 371 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007058/0.3407, allocations: 271.5 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3407, allocations: 2.156 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.341, allocations: 189.3 kB / 371.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.3415, allocations: 32.5 kB / 371.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.3446, allocations: 2.278 MB / 373.7 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.3448, allocations: 0.7377 MB / 374.5 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.3449, allocations: 15.91 kB / 374.5 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.11e-05/0.345, allocations: 55.69 kB / 374.5 MB, free: 17.5 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.345, allocations: 0.9375 kB / 374.5 MB, free: 17.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.3648, allocations: 4.25 MB / 378.8 MB, free: 17.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/0.365, allocations: 235.6 kB / 379 MB, free: 16.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.107, allocations: 4 kB / 379 MB, free: 16.88 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