Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00094/0.0009401, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000708/0.000708, allocations: 98.53 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001968/0.0001968, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1772, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.002048/0.1793, allocations: 2.582 MB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.1805, allocations: 1.261 MB / 411.3 MB, free: 24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.1807, allocations: 4 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.181, allocations: 123.4 kB / 411.5 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000297/0.1813, allocations: 182.3 kB / 411.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.1815, allocations: 139.7 kB / 411.8 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.1818, allocations: 390.1 kB / 412.2 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.1819, allocations: 89.94 kB / 412.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.1821, allocations: 151.4 kB / 412.4 MB, free: 22.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.1822, allocations: 167.2 kB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.1823, allocations: 19.94 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-05/0.1824, allocations: 39.98 kB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.102e-05/0.1824, allocations: 67.69 kB / 412.7 MB, free: 22.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.53e-05/0.1825, allocations: 94.83 kB / 412.8 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.1827, allocations: 320.2 kB / 413.1 MB, free: 22.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1827, allocations: 0 / 413.1 MB, free: 22.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1827, allocations: 4 kB / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1827, allocations: 0.6875 kB / 413.1 MB, free: 22.23 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006593/0.1834, allocations: 0.62 MB / 413.7 MB, free: 21.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.703e-05/0.1834, allocations: 12.03 kB / 413.7 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.453e-05/0.1835, allocations: 43.47 kB / 413.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.1838, allocations: 315.4 kB / 414.1 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.1838, allocations: 24.52 kB / 414.1 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.1838, allocations: 27.91 kB / 414.1 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003683/0.1842, allocations: 291.1 kB / 414.4 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1842, allocations: 0 / 414.4 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.599e-05/0.1843, allocations: 12 kB / 414.4 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.1843, allocations: 8 kB / 414.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.1845, allocations: 178.1 kB / 414.6 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009396/0.1855, allocations: 0.8522 MB / 415.5 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.1859, allocations: 261.7 kB / 415.7 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.186, allocations: 101.4 kB / 415.8 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.1861, allocations: 4.281 kB / 415.8 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.1863, allocations: 162.6 kB / 416 MB, free: 19.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.583e-06/0.1863, allocations: 0 / 416 MB, free: 19.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001665/0.188, allocations: 1.312 MB / 417.3 MB, free: 17.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.188, allocations: 183.9 kB / 417.5 MB, free: 17.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.1883, allocations: 332.5 kB / 417.8 MB, free: 17.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.1883, allocations: 41.7 kB / 417.8 MB, free: 17.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.1884, allocations: 184.5 kB / 418 MB, free: 16.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.1885, allocations: 138 kB / 418.1 MB, free: 16.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.1885, allocations: 12 kB / 418.2 MB, free: 16.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.008e-05/0.1885, allocations: 346.8 kB / 418.5 MB, free: 16.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1887, allocations: 80.84 kB / 418.6 MB, free: 16.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.1888, allocations: 181.3 kB / 418.7 MB, free: 16.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.189, allocations: 113.5 kB / 418.9 MB, free: 16.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.189, allocations: 0 / 418.9 MB, free: 16.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004165/0.1894, allocations: 350.9 kB / 419.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.1895, allocations: 4 kB / 419.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1895, allocations: 4 kB / 419.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.41e-05/0.1895, allocations: 24.75 kB / 419.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.1898, allocations: 91.89 kB / 419.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006252/0.1905, allocations: 1.292 MB / 420.6 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.1907, allocations: 19.97 kB / 420.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1907, allocations: 12 kB / 420.6 MB, free: 14.12 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: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.1908, allocations: 168.2 kB / 420.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.1909, allocations: 39.53 kB / 420.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.41e-05/0.1909, allocations: 55.84 kB / 420.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1909, allocations: 4 kB / 420.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1909, allocations: 0 / 420.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003991/0.1913, allocations: 0.6573 MB / 421.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007868/0.1921, allocations: 0.8331 MB / 422.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1922, allocations: 3.938 kB / 422.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.1924, allocations: 75.91 kB / 422.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.1925, allocations: 4.062 kB / 422.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.1925, allocations: 15.98 kB / 422.5 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1925, allocations: 128 / 422.5 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1925, allocations: 8 kB / 422.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005323/0.193, allocations: 0.5375 MB / 423 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.1931, allocations: 136.7 kB / 423.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.1932, allocations: 16 kB / 423.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.1934, allocations: 15.98 kB / 423.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.1934, allocations: 23.97 kB / 423.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.1935, allocations: 16 kB / 423.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.1936, allocations: 239 kB / 423.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1936, allocations: 0 / 423.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003153/0.194, allocations: 92 kB / 423.6 MB, free: 10.96 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007018/0.1947, allocations: 431.5 kB / 424 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004518/0.1951, allocations: 370 kB / 424.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1952, allocations: 0 / 424.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.1953, allocations: 137.1 kB / 424.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000481/0.1958, allocations: 93 kB / 424.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.197, allocations: 1.274 MB / 425.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.1972, allocations: 0.8002 MB / 426.6 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.993e-05/0.1973, allocations: 43.42 kB / 426.7 MB, free: 7.883 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.1973, allocations: 7.938 kB / 426.7 MB, free: 7.875 MB / 298.7 MB Notification: Performance of Templates: time 0.005746/0.203, allocations: 5.691 MB / 432.4 MB, free: 2.215 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches