Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 213.3 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 258.2 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2315/0.2315, allocations: 46.97 MB / 361.6 MB, free: 4.004 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 59.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3244, allocations: 66.04 MB / 0.5618 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00166/0.326, allocations: 487.7 kB / 0.5623 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007002/0.3267, allocations: 261.5 kB / 0.5625 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.382e-05/0.3268, allocations: 4 kB / 0.5625 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.3268, allocations: 4 kB / 0.5625 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.3268, allocations: 0 / 0.5625 GB, free: 3.406 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.3271, allocations: 55.81 kB / 0.5626 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.588e-05/0.3272, allocations: 0 / 0.5626 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.521e-05/0.3272, allocations: 3.984 kB / 0.5626 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.6e-05/0.3272, allocations: 4 kB / 0.5626 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.432e-05/0.3273, allocations: 0 / 0.5626 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.3273, allocations: 3.938 kB / 0.5626 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.3275, allocations: 67.94 kB / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.817e-06/0.3275, allocations: 0 / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.259e-05/0.3275, allocations: 0 / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.3276, allocations: 59.67 kB / 0.5627 GB, free: 3.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3276, allocations: 0 / 0.5627 GB, free: 3.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3276, allocations: 0 / 0.5627 GB, free: 3.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3277, allocations: 3.938 kB / 0.5627 GB, free: 3.215 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003566/0.328, allocations: 286.5 kB / 0.563 GB, free: 2.902 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.328, allocations: 8.031 kB / 0.563 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.939e-05/0.3281, allocations: 0.9375 kB / 0.563 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.527e-05/0.3282, allocations: 106.5 kB / 0.5631 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.3282, allocations: 4.375 kB / 0.5631 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.3282, allocations: 384 / 0.5631 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.3283, allocations: 59.95 kB / 0.5631 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.3283, allocations: 4.188 kB / 0.5632 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3283, allocations: 3.938 kB / 0.5632 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3283, allocations: 0 / 0.5632 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.378e-05/0.3284, allocations: 29.7 kB / 0.5632 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.3285, allocations: 101.3 kB / 0.5633 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.014e-05/0.3286, allocations: 44.22 kB / 0.5633 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/0.3286, allocations: 38.64 kB / 0.5634 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-06/0.3286, allocations: 0 / 0.5634 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.212e-05/0.3287, allocations: 60.27 kB / 0.5634 GB, free: 2.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3287, allocations: 0 / 0.5634 GB, free: 2.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000219/0.3289, allocations: 126.7 kB / 0.5635 GB, free: 2.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/0.329, allocations: 81.11 kB / 0.5636 GB, free: 2.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.247e-05/0.329, allocations: 93.81 kB / 0.5637 GB, free: 1.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.329, allocations: 29.7 kB / 0.5637 GB, free: 1.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.3291, allocations: 80.14 kB / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.3291, allocations: 3.938 kB / 0.5638 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.3291, allocations: 13.72 kB / 0.5638 GB, free: 1.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3293, allocations: 310.8 kB / 0.5641 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.612e-05/0.3293, allocations: 25.7 kB / 0.5641 GB, free: 1.508 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.206e-05/0.3293, allocations: 33.83 kB / 0.5642 GB, free: 1.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.3295, allocations: 68.25 kB / 0.5642 GB, free: 1.387 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3295, allocations: 0 / 0.5642 GB, free: 1.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.566e-05/0.3295, allocations: 85.05 kB / 0.5643 GB, free: 1.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.3296, allocations: 33.7 kB / 0.5644 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.3296, allocations: 0 / 0.5644 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3296, allocations: 3.984 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.955e-06/0.3296, allocations: 3.938 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.3296, allocations: 3.938 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.3296, allocations: 0 / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3296, allocations: 8.094 kB / 0.5644 GB, free: 1.227 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.3297, allocations: 135.5 kB / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.117e-05/0.3297, allocations: 8 kB / 0.5645 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.959e-06/0.3297, allocations: 3 kB / 0.5645 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3298, allocations: 3.938 kB / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3298, allocations: 0 / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3298, allocations: 0 / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.117e-05/0.3298, allocations: 97.31 kB / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3298, allocations: 4 kB / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3298, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.3298, allocations: 4 kB / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.3298, allocations: 0 / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3299, allocations: 0 / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.3299, allocations: 3.938 kB / 0.5646 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000123/0.33, allocations: 120.5 kB / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-06/0.33, allocations: 0 / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.33, allocations: 4 kB / 0.5647 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.647e-06/0.33, allocations: 0 / 0.5647 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.657e-05/0.33, allocations: 3.938 kB / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-06/0.33, allocations: 0 / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.378e-05/0.3301, allocations: 79.28 kB / 0.5648 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3301, allocations: 4.031 kB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002325/0.3303, allocations: 27.86 kB / 0.5649 GB, free: 0.6602 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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.0007092/0.331, allocations: 284.3 kB / 0.5651 GB, free: 464 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.3311, allocations: 114.8 kB / 0.5652 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3311, allocations: 3.938 kB / 0.5652 GB, free: 320 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.643e-05/0.3312, allocations: 85.09 kB / 0.5653 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.3313, allocations: 0 / 0.5653 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002129/0.3315, allocations: 140.3 kB / 0.5655 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.514e-05/0.3316, allocations: 63.47 kB / 0.5655 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.203e-05/0.3316, allocations: 7.438 kB / 0.5655 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3316, allocations: 0 / 0.5655 GB, free: 15.95 MB / 414.1 MB Notification: Performance of Templates: time 0.002662/0.3343, allocations: 0.9599 MB / 0.5665 GB, free: 14.98 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.379244795010891]