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: translateModel(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009855/0.0009856, allocations: 200.6 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.6 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007509/0.0007508, allocations: 91.8 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002441/0.0002441, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2039, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.001948/0.2059, allocations: 2.12 MB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007712/0.2067, allocations: 0.6462 MB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.2068, allocations: 7.938 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.2069, allocations: 21 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.746e-05/0.207, allocations: 61.23 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.2072, allocations: 47.95 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.2074, allocations: 242.8 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.2076, allocations: 99.69 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.847e-05/0.2077, allocations: 75.72 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.2078, allocations: 95.59 kB / 411.4 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.2079, allocations: 8 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.552e-05/0.208, allocations: 19.94 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.571e-05/0.208, allocations: 36.81 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.2081, allocations: 125.2 kB / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.2083, allocations: 180.4 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2083, allocations: 0.5 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2084, allocations: 0.7188 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.2084, allocations: 4 kB / 411.8 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.0007705/0.2091, allocations: 0.5164 MB / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2092, allocations: 12.03 kB / 412.3 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.133e-05/0.2093, allocations: 32.64 kB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.2095, allocations: 230 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.2095, allocations: 16.81 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.2095, allocations: 24.31 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.2099, allocations: 230.2 kB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2099, allocations: 8 kB / 412.9 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.21, allocations: 11.94 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.21, allocations: 4 kB / 412.9 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.2103, allocations: 161.7 kB / 413 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009819/0.2113, allocations: 0.8322 MB / 413.9 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.2116, allocations: 166.5 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.2118, allocations: 84.81 kB / 414.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.2118, allocations: 0 / 414.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.32e-05/0.2118, allocations: 42.56 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 9.62e-07/0.2118, allocations: 0 / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007188/0.2126, allocations: 354.5 kB / 414.5 MB, free: 20.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/0.2126, allocations: 55.41 kB / 414.6 MB, free: 20.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.2127, allocations: 171.2 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.2127, allocations: 25.7 kB / 414.8 MB, free: 20.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.154e-05/0.2128, allocations: 152.1 kB / 414.9 MB, free: 20.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.2128, allocations: 55.2 kB / 415 MB, free: 20.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.2128, allocations: 4 kB / 415 MB, free: 20.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.118e-05/0.2129, allocations: 326.8 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.213, allocations: 59.95 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2132, allocations: 99.08 kB / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/0.2134, allocations: 150.4 kB / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2134, allocations: 0 / 415.6 MB, free: 19.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003882/0.2138, allocations: 234 kB / 415.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2138, allocations: 7.938 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2138, allocations: 0 / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.214, allocations: 40.77 kB / 415.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.2142, allocations: 31.98 kB / 415.9 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007354/0.2149, allocations: 1.367 MB / 417.3 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.2151, allocations: 43.91 kB / 417.3 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.2151, allocations: 4 kB / 417.3 MB, free: 17.97 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.977e-05/0.2152, allocations: 142.8 kB / 417.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.2152, allocations: 15.81 kB / 417.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.861e-05/0.2153, allocations: 25.86 kB / 417.5 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.2153, allocations: 8 kB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2153, allocations: 0 / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2153, allocations: 3.938 kB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/0.2159, allocations: 0.5265 MB / 418 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2159, allocations: 0 / 418 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.216, allocations: 27.98 kB / 418.1 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.592e-05/0.2161, allocations: 28.84 kB / 418.1 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.2162, allocations: 3.938 kB / 418.1 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006423/0.2168, allocations: 1.366 MB / 419.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2168, allocations: 4 kB / 419.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005043/0.2173, allocations: 366.7 kB / 419.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.801e-05/0.2174, allocations: 112.9 kB / 419.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2174, allocations: 0 / 419.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.2176, allocations: 32.05 kB / 420 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.716e-05/0.2177, allocations: 15.97 kB / 420 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.2177, allocations: 8.078 kB / 420 MB, free: 15.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.362e-05/0.2178, allocations: 131.2 kB / 420.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.2178, allocations: 0 / 420.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002701/0.2181, allocations: 71.78 kB / 420.2 MB, free: 14.86 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 9.438e-05/0.2182, allocations: 99.23 kB / 420.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004282/0.2186, allocations: 274.7 kB / 420.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2186, allocations: 0 / 420.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.2188, allocations: 197.5 kB / 420.7 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.2192, allocations: 31.75 kB / 420.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006255/0.2198, allocations: 0.5923 MB / 421.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/0.2199, allocations: 0.7362 MB / 422.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.812e-05/0.22, allocations: 15.44 kB / 422.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.22, allocations: 0 / 422.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of Templates: time 0.003737/0.2237, allocations: 3.118 MB / 425.2 MB, free: 9.734 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.makefile (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 & ./Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat","/var/lib/jenkins/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) Reference file matches