Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.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_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001389/0.001389, allocations: 187.1 kB / 18.67 MB, free: 4.434 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.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 47.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3004, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004693/0.3052, allocations: 3.008 MB / 404.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.3075, allocations: 1.25 MB / 405.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.3077, allocations: 7.938 kB / 405.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004914/0.3082, allocations: 147.2 kB / 405.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004386/0.3086, allocations: 178.8 kB / 406 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.3091, allocations: 169.4 kB / 406.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005032/0.3096, allocations: 430.2 kB / 406.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.3098, allocations: 103.5 kB / 406.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.31, allocations: 175.3 kB / 406.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.3103, allocations: 191.2 kB / 407 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.479e-05/0.3104, allocations: 32 kB / 407.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.3106, allocations: 55.98 kB / 407.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.3107, allocations: 83.69 kB / 407.2 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.3109, allocations: 186.9 kB / 407.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005048/0.3114, allocations: 447.6 kB / 407.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3114, allocations: 0 / 407.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3114, allocations: 0 / 407.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3114, allocations: 0 / 407.8 MB, free: 2.461 MB / 318.1 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.001029/0.3125, allocations: 0.6789 MB / 408.5 MB, free: 1.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3125, allocations: 8.031 kB / 408.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.962e-05/0.3126, allocations: 48.45 kB / 408.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.3131, allocations: 319.8 kB / 408.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.3131, allocations: 16.94 kB / 408.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.938e-05/0.3132, allocations: 36.12 kB / 408.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.3137, allocations: 291.1 kB / 409.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3138, allocations: 3.906 kB / 409.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.3138, allocations: 12 kB / 409.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3138, allocations: 8 kB / 409.2 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003214/0.3141, allocations: 178.1 kB / 409.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.3154, allocations: 0.8366 MB / 410.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.316, allocations: 262.3 kB / 410.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3162, allocations: 97.38 kB / 410.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.145e-05/0.3162, allocations: 4.281 kB / 410.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.3165, allocations: 170.6 kB / 410.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/0.3165, allocations: 0 / 410.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002284/0.3188, allocations: 1.31 MB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.3189, allocations: 183.9 kB / 412.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.3193, allocations: 320.6 kB / 412.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.3193, allocations: 41.7 kB / 412.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3195, allocations: 180.6 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.3196, allocations: 141.9 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.3197, allocations: 82.06 kB / 413 MB, free: 12.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3199, allocations: 346.8 kB / 413.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.32, allocations: 84.84 kB / 413.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.3203, allocations: 185.2 kB / 413.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.3207, allocations: 246.2 kB / 413.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3207, allocations: 4 kB / 413.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005165/0.3212, allocations: 354.2 kB / 414.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3213, allocations: 8 kB / 414.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3213, allocations: 0 / 414.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.301e-05/0.3214, allocations: 20.86 kB / 414.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.3217, allocations: 87.89 kB / 414.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.3228, allocations: 1.402 MB / 415.7 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.323, allocations: 12 kB / 415.7 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.323, allocations: 23.97 kB / 415.7 MB, free: 9.938 MB / 334.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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.3232, allocations: 158.3 kB / 415.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.766e-05/0.3233, allocations: 39.53 kB / 415.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.531e-05/0.3234, allocations: 43.88 kB / 416 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.3234, allocations: 7.938 kB / 416 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3234, allocations: 3.938 kB / 416 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006265/0.324, allocations: 0.6689 MB / 416.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.3251, allocations: 0.8413 MB / 417.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.3251, allocations: 0 / 417.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.3255, allocations: 71.91 kB / 417.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.3255, allocations: 4 kB / 417.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.3255, allocations: 20.11 kB / 417.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.3255, allocations: 3.938 kB / 417.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3255, allocations: 4 kB / 417.6 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007472/0.3263, allocations: 0.5384 MB / 418.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.3264, allocations: 132.7 kB / 418.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.999e-05/0.3265, allocations: 15.98 kB / 418.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.3267, allocations: 8 kB / 418.3 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.044e-05/0.3268, allocations: 27.91 kB / 418.3 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.3268, allocations: 19.98 kB / 418.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.327, allocations: 235.1 kB / 418.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.327, allocations: 0 / 418.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004033/0.3275, allocations: 99.94 kB / 418.7 MB, free: 6.785 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000956/0.3284, allocations: 432.5 kB / 419.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006399/0.3291, allocations: 354.5 kB / 419.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3291, allocations: 4 kB / 419.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.3293, allocations: 144.1 kB / 419.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.3299, allocations: 94.64 kB / 419.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.3315, allocations: 1.048 MB / 420.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.3319, allocations: 0.7963 MB / 421.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.25e-05/0.332, allocations: 39.44 kB / 421.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.3321, allocations: 0 / 421.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of Templates: time 0.008689/0.3407, allocations: 5.714 MB / 427.3 MB, free: 14.28 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches