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.001567/0.001567, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.002136/0.002136, allocations: 191 kB / 18 MB, free: 5.09 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 47.92 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2965, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.005848/0.3024, allocations: 3.007 MB / 403.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002716/0.3052, allocations: 1.254 MB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.3054, allocations: 7.938 kB / 405 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006037/0.306, allocations: 147.2 kB / 405.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.3066, allocations: 174.8 kB / 405.3 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005342/0.3072, allocations: 173.8 kB / 405.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006406/0.3078, allocations: 430.2 kB / 405.9 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/0.3081, allocations: 107.4 kB / 406 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.3084, allocations: 175.3 kB / 406.2 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.3087, allocations: 191.1 kB / 406.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.3088, allocations: 28 kB / 406.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.309, allocations: 52 kB / 406.4 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3091, allocations: 91.61 kB / 406.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002367/0.3093, allocations: 183 kB / 406.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006351/0.31, allocations: 446 kB / 407.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.31, allocations: 3.984 kB / 407.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.31, allocations: 0 / 407.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.31, allocations: 0 / 407.1 MB, free: 2.441 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.001234/0.3113, allocations: 0.6824 MB / 407.8 MB, free: 1.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3113, allocations: 16.02 kB / 407.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.3115, allocations: 48.66 kB / 407.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.312, allocations: 320.2 kB / 408.2 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.3121, allocations: 24.88 kB / 408.2 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.3121, allocations: 32.08 kB / 408.2 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006693/0.3128, allocations: 291.1 kB / 408.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.3128, allocations: 0 / 408.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.3129, allocations: 12 kB / 408.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3129, allocations: 8 kB / 408.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.3134, allocations: 182.1 kB / 408.7 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.3151, allocations: 0.8329 MB / 409.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/0.3158, allocations: 259.1 kB / 409.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.3161, allocations: 101.3 kB / 409.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.3161, allocations: 16.25 kB / 409.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.3165, allocations: 158.6 kB / 410.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 2.335e-06/0.3165, allocations: 0 / 410.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003053/0.3196, allocations: 1.318 MB / 411.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.3197, allocations: 183.9 kB / 411.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000461/0.3202, allocations: 324.5 kB / 411.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.3202, allocations: 37.7 kB / 411.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.3204, allocations: 184.7 kB / 412.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.3206, allocations: 146.8 kB / 412.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.3208, allocations: 78.08 kB / 412.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3209, allocations: 346.8 kB / 412.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.3212, allocations: 88.83 kB / 412.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.3215, allocations: 181.2 kB / 412.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005633/0.3221, allocations: 250.2 kB / 413.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3221, allocations: 0 / 413.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008021/0.3229, allocations: 358.5 kB / 413.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.323, allocations: 8 kB / 413.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.323, allocations: 4 kB / 413.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001046/0.3231, allocations: 28.84 kB / 413.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.3236, allocations: 87.89 kB / 413.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.325, allocations: 1.394 MB / 415.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.3253, allocations: 12.03 kB / 415.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.3253, allocations: 16 kB / 415.1 MB, free: 9.895 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.0002542/0.3256, allocations: 174.3 kB / 415.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.852e-05/0.3257, allocations: 39.77 kB / 415.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.3258, allocations: 43.88 kB / 415.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3258, allocations: 4 kB / 415.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3259, allocations: 7.875 kB / 415.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008684/0.3267, allocations: 0.6611 MB / 416 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.3284, allocations: 0.8375 MB / 416.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3284, allocations: 0 / 416.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.3289, allocations: 79.83 kB / 416.9 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.3289, allocations: 4 kB / 416.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.3289, allocations: 12 kB / 416.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.3289, allocations: 0 / 416.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3289, allocations: 4 kB / 416.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.33, allocations: 0.5388 MB / 417.5 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.3302, allocations: 144.8 kB / 417.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.167e-05/0.3303, allocations: 8 kB / 417.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/0.3307, allocations: 16.11 kB / 417.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/0.3308, allocations: 27.97 kB / 417.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/0.3308, allocations: 16 kB / 417.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003465/0.3312, allocations: 239 kB / 417.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3312, allocations: 0 / 417.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006439/0.3318, allocations: 99.88 kB / 418 MB, free: 6.73 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.001331/0.3332, allocations: 425.4 kB / 418.4 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008788/0.3341, allocations: 370.4 kB / 418.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3341, allocations: 0 / 418.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003247/0.3344, allocations: 139.6 kB / 418.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008379/0.3353, allocations: 91.17 kB / 419 MB, free: 5.867 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.3375, allocations: 1.041 MB / 420.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/0.3379, allocations: 0.8001 MB / 420.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.3382, allocations: 51.25 kB / 420.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3383, allocations: 31.44 kB / 420.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3383, allocations: 0 / 420.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of Templates: time 0.01411/0.3525, allocations: 5.301 MB / 426.2 MB, free: 14.65 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins/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