Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009906/0.0009906, allocations: 191.7 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.5 MB / 244.7 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000754/0.0007539, allocations: 104.4 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002166/0.0002167, allocations: 4 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2025, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.001892/0.2045, allocations: 2.127 MB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007305/0.2052, allocations: 0.6436 MB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.583e-05/0.2053, allocations: 0 / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.2055, allocations: 27.77 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.291e-05/0.2056, allocations: 61.16 kB / 411 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/0.2057, allocations: 49.77 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002102/0.206, allocations: 246.8 kB / 411.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.2061, allocations: 89.11 kB / 411.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.681e-05/0.2062, allocations: 76.41 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.421e-05/0.2063, allocations: 95.55 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.2063, allocations: 12.56 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.419e-05/0.2064, allocations: 16.5 kB / 411.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.524e-05/0.2065, allocations: 39.83 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.408e-05/0.2065, allocations: 125.8 kB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.2067, allocations: 187.9 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2067, allocations: 0 / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2067, allocations: 0 / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.2067, allocations: 0 / 411.9 MB, free: 23.89 MB / 298.7 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.0006629/0.2074, allocations: 0.5174 MB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2074, allocations: 8.031 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.925e-05/0.2075, allocations: 63.16 kB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.24e-05/0.2076, allocations: 24.66 kB / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.2078, allocations: 230 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.2078, allocations: 16.81 kB / 412.8 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.2078, allocations: 28.31 kB / 412.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003559/0.2082, allocations: 234 kB / 413 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.2082, allocations: 4 kB / 413 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.2082, allocations: 8 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.2082, allocations: 4 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.2086, allocations: 173.6 kB / 413.2 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009317/0.2095, allocations: 0.8322 MB / 414 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.2098, allocations: 166.6 kB / 414.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.21, allocations: 88.83 kB / 414.3 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.21, allocations: 0 / 414.3 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.21, allocations: 34.5 kB / 414.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 9.51e-07/0.2101, allocations: 0 / 414.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007413/0.2108, allocations: 353.2 kB / 414.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.063e-05/0.2108, allocations: 59.39 kB / 414.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.2109, allocations: 175.1 kB / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.211, allocations: 29.7 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.211, allocations: 148.1 kB / 415.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.2111, allocations: 51.2 kB / 415.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.2111, allocations: 8 kB / 415.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.917e-05/0.2111, allocations: 330.8 kB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.2113, allocations: 55.97 kB / 415.5 MB, free: 20.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.2114, allocations: 98.44 kB / 415.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.2117, allocations: 158.8 kB / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.2117, allocations: 0 / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003736/0.212, allocations: 230 kB / 416 MB, free: 19.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.2121, allocations: 8 kB / 416 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2121, allocations: 0 / 416 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.2123, allocations: 36.97 kB / 416 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2124, allocations: 35.97 kB / 416 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000735/0.2131, allocations: 1.367 MB / 417.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.2133, allocations: 39.81 kB / 417.5 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.2133, allocations: 4 kB / 417.5 MB, free: 17.89 MB / 298.7 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 ($PRE.onOffController.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.31e-05/0.2134, allocations: 142.8 kB / 417.6 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.2135, allocations: 19.81 kB / 417.6 MB, free: 17.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.2135, allocations: 17.88 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2135, allocations: 4 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2135, allocations: 3.984 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2135, allocations: 0 / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005661/0.2141, allocations: 0.5302 MB / 418.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2141, allocations: 0 / 418.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.2143, allocations: 31.97 kB / 418.2 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.303e-05/0.2144, allocations: 36.72 kB / 418.2 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2144, allocations: 4 kB / 418.2 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000625/0.215, allocations: 1.359 MB / 419.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.215, allocations: 3.984 kB / 419.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004893/0.2155, allocations: 373.8 kB / 420 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.2156, allocations: 97.03 kB / 420.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.2156, allocations: 4 kB / 420.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.2158, allocations: 31.88 kB / 420.1 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.2159, allocations: 27.97 kB / 420.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.2159, allocations: 4 kB / 420.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.28e-05/0.2159, allocations: 139.2 kB / 420.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2159, allocations: 0 / 420.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002638/0.2162, allocations: 59.84 kB / 420.3 MB, free: 14.78 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006495/0.2169, allocations: 0.9014 MB / 421.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004081/0.2173, allocations: 266.6 kB / 421.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2173, allocations: 4 kB / 421.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.2175, allocations: 202.8 kB / 421.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.2178, allocations: 35.67 kB / 421.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.2193, allocations: 1.271 MB / 423 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.2194, allocations: 0.7397 MB / 423.7 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.762e-05/0.2195, allocations: 55.42 kB / 423.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2195, allocations: 0 / 423.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.976/3.195, allocations: 3.793 MB / 427.6 MB, free: 7.379 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.off,idealSwitch.p.i,idealSwitch.p.v,idealSwitch.s,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