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: translateModel(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") translateModel(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001171, allocations: 101 kB / 17.59 MB, free: 5.422 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.001329/0.001329, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.397/1.397, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009442/0.0009443, allocations: 47.39 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1061, allocations: 49.45 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.00429/0.1105, allocations: 2.49 MB / 353.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.112, allocations: 0.6427 MB / 353.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002985/0.1123, allocations: 7.938 kB / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.1125, allocations: 39.64 kB / 353.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.1128, allocations: 63.41 kB / 354 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.1132, allocations: 59.86 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.1136, allocations: 270.7 kB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.1139, allocations: 107.4 kB / 354.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.1141, allocations: 87.72 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.1143, allocations: 123.5 kB / 354.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.1143, allocations: 20 kB / 354.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.1144, allocations: 24 kB / 354.6 MB, free: 496 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.649e-05/0.1145, allocations: 47.84 kB / 354.7 MB, free: 448 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.1146, allocations: 119.4 kB / 354.8 MB, free: 328 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.115, allocations: 251.4 kB / 355.1 MB, free: 76 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.115, allocations: 4 kB / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.115, allocations: 0 / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1151, allocations: 0 / 355.1 MB, free: 72 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.001281/0.1163, allocations: 0.5381 MB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.1164, allocations: 15.89 kB / 355.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.1166, allocations: 28.66 kB / 355.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.1169, allocations: 236.3 kB / 355.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.117, allocations: 16.81 kB / 355.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.352e-05/0.117, allocations: 24.31 kB / 355.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/0.1175, allocations: 234.2 kB / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.1175, allocations: 0 / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.1176, allocations: 12 kB / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.1176, allocations: 4 kB / 356.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.118, allocations: 165.5 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.1194, allocations: 0.8244 MB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003725/0.1198, allocations: 158.5 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.12, allocations: 76.83 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.12, allocations: 3.938 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.12, allocations: 42.56 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.824e-06/0.12, allocations: 0 / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009111/0.1209, allocations: 331.2 kB / 357.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.121, allocations: 59.41 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.1211, allocations: 175.2 kB / 358 MB, free: 12.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1212, allocations: 29.7 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.883e-05/0.1213, allocations: 148.1 kB / 358.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.1213, allocations: 55.33 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/0.1214, allocations: 37.7 kB / 358.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1215, allocations: 330.8 kB / 358.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.1217, allocations: 51.97 kB / 358.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1218, allocations: 99.19 kB / 358.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.1221, allocations: 148 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1221, allocations: 0 / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004718/0.1226, allocations: 214.1 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1227, allocations: 6.656 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1227, allocations: 8.125 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.1229, allocations: 32.83 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.123, allocations: 35.92 kB / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.1242, allocations: 1.461 MB / 360.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.1245, allocations: 39.88 kB / 360.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.1245, allocations: 8.062 kB / 360.6 MB, free: 10.04 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.000128/0.1246, allocations: 133.8 kB / 360.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.1247, allocations: 15.81 kB / 360.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.1247, allocations: 25.81 kB / 360.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1247, allocations: 4 kB / 360.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1247, allocations: 0 / 360.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1248, allocations: 7.922 kB / 360.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007877/0.1255, allocations: 0.5253 MB / 361.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1256, allocations: 0 / 361.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.1257, allocations: 27.92 kB / 361.4 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.1258, allocations: 36.77 kB / 361.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.1259, allocations: 4 kB / 361.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.127, allocations: 1.461 MB / 362.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.127, allocations: 8 kB / 362.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006313/0.1276, allocations: 344 kB / 363.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.611e-05/0.1277, allocations: 104.9 kB / 363.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.1278, allocations: 4.125 kB / 363.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.128, allocations: 24.05 kB / 363.4 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.128, allocations: 27.89 kB / 363.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1281, allocations: 4 kB / 363.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.1282, allocations: 124.3 kB / 363.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1282, allocations: 0 / 363.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003624/0.1286, allocations: 59.81 kB / 363.6 MB, free: 6.867 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.0001258/0.1287, allocations: 115.1 kB / 363.7 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005519/0.1292, allocations: 266.5 kB / 363.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1293, allocations: 0 / 363.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002699/0.1295, allocations: 178.9 kB / 364.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000384/0.1299, allocations: 35.86 kB / 364.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008764/0.1308, allocations: 499.1 kB / 364.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1311, allocations: 0.7359 MB / 365.4 MB, free: 4.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.403e-05/0.1312, allocations: 15.44 kB / 365.4 MB, free: 4.957 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1312, allocations: 3.938 kB / 365.4 MB, free: 4.953 MB / 302.1 MB Notification: Performance of Templates: time 0.005404/0.1366, allocations: 3.142 MB / 368.5 MB, free: 1.816 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.makefile (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 & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches