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.001057/0.001057, allocations: 196.1 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.6 MB / 244.7 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007292/0.0007292, allocations: 90.05 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000226/0.0002261, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1984, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.002248/0.2007, allocations: 2.59 MB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.2023, allocations: 1.264 MB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.2024, allocations: 7.938 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.2028, allocations: 115.5 kB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003905/0.2032, allocations: 181.3 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.2036, allocations: 139.7 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003287/0.2039, allocations: 402.1 kB / 412.7 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2041, allocations: 102.8 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.2042, allocations: 155.3 kB / 413 MB, free: 22.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.2044, allocations: 159.3 kB / 413.1 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.2044, allocations: 16.59 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2046, allocations: 47.92 kB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.794e-05/0.2046, allocations: 68.31 kB / 413.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.2048, allocations: 188.2 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.205, allocations: 336 kB / 413.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.205, allocations: 0 / 413.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.205, allocations: 0 / 413.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2051, allocations: 0 / 413.8 MB, free: 21.94 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.0007493/0.2058, allocations: 0.6207 MB / 414.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2059, allocations: 8.031 kB / 414.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.013e-05/0.2059, allocations: 44.47 kB / 414.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.2063, allocations: 324.4 kB / 414.8 MB, free: 20.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.2063, allocations: 16.94 kB / 414.8 MB, free: 20.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.2064, allocations: 35.97 kB / 414.8 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.2068, allocations: 292.5 kB / 415.1 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.2068, allocations: 8 kB / 415.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.2068, allocations: 8 kB / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.2068, allocations: 8 kB / 415.1 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.2071, allocations: 174.1 kB / 415.3 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.2082, allocations: 0.8522 MB / 416.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004447/0.2086, allocations: 256.4 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.2088, allocations: 97.39 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.2088, allocations: 8.266 kB / 416.5 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.2091, allocations: 155.3 kB / 416.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.753e-06/0.2091, allocations: 0 / 416.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001926/0.211, allocations: 1.304 MB / 418 MB, free: 17.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.2111, allocations: 195.9 kB / 418.1 MB, free: 17.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.2114, allocations: 332.5 kB / 418.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.2114, allocations: 33.64 kB / 418.5 MB, free: 16.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.2115, allocations: 188.6 kB / 418.7 MB, free: 16.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.873e-05/0.2116, allocations: 138 kB / 418.8 MB, free: 16.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.2116, allocations: 8 kB / 418.8 MB, free: 16.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.637e-05/0.2117, allocations: 350.8 kB / 419.2 MB, free: 16.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.2118, allocations: 84.83 kB / 419.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.212, allocations: 181.3 kB / 419.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.2124, allocations: 246.2 kB / 419.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2124, allocations: 0 / 419.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004506/0.2128, allocations: 354.2 kB / 420 MB, free: 15.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2128, allocations: 4 kB / 420 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2129, allocations: 4 kB / 420 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.773e-05/0.2129, allocations: 16.86 kB / 420 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.2132, allocations: 96.02 kB / 420.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006899/0.2139, allocations: 1.288 MB / 421.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.2142, allocations: 19.97 kB / 421.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.2142, allocations: 19.94 kB / 421.5 MB, free: 13.68 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.000146/0.2143, allocations: 177.5 kB / 421.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.2144, allocations: 35.62 kB / 421.7 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.012e-05/0.2145, allocations: 39.95 kB / 421.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2145, allocations: 4 kB / 421.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.2145, allocations: 0 / 421.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004312/0.2149, allocations: 0.6689 MB / 422.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008798/0.2158, allocations: 0.8369 MB / 423.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.2158, allocations: 3.938 kB / 423.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.2161, allocations: 83.97 kB / 423.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.2161, allocations: 0 / 423.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.2162, allocations: 8 kB / 423.3 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2162, allocations: 4 kB / 423.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2162, allocations: 7.984 kB / 423.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005764/0.2168, allocations: 0.541 MB / 423.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.2169, allocations: 144.6 kB / 424 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.364e-05/0.2169, allocations: 8 kB / 424 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.2171, allocations: 15.94 kB / 424 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.2172, allocations: 31.81 kB / 424.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.2172, allocations: 16 kB / 424.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001816/0.2174, allocations: 243 kB / 424.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2174, allocations: 0 / 424.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003564/0.2178, allocations: 96.62 kB / 424.4 MB, free: 10.51 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.0008242/0.2186, allocations: 416.2 kB / 424.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.2192, allocations: 358.6 kB / 425.2 MB, free: 9.875 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2192, allocations: 4.062 kB / 425.2 MB, free: 9.871 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.2194, allocations: 128.7 kB / 425.3 MB, free: 9.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.2199, allocations: 99.8 kB / 425.4 MB, free: 9.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.2212, allocations: 1.286 MB / 426.7 MB, free: 8.316 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.2214, allocations: 0.8002 MB / 427.5 MB, free: 7.488 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.531e-05/0.2215, allocations: 35.44 kB / 427.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2215, allocations: 0 / 427.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of Templates: time 0.006044/0.2276, allocations: 5.696 MB / 433.2 MB, free: 1.781 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