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.001402/0.001402, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001494/0.001494, allocations: 209.2 kB / 24.47 MB, free: 3.977 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.479/1.479, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.2363/0.2363, allocations: 46.96 MB / 361.6 MB, free: 4.156 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.00202/0.00202, allocations: 71.89 kB / 0.4973 GB, free: 7.289 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3138, allocations: 66.03 MB / 0.5618 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00158/0.3154, allocations: 491.8 kB / 0.5623 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006806/0.316, allocations: 261.5 kB / 0.5625 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.007e-05/0.3161, allocations: 4 kB / 0.5625 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.14e-05/0.3161, allocations: 0 / 0.5625 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.99e-06/0.3161, allocations: 0 / 0.5625 GB, free: 3.496 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.0003309/0.3164, allocations: 51.83 kB / 0.5626 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.889e-05/0.3165, allocations: 0 / 0.5626 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.3165, allocations: 3.938 kB / 0.5626 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.048e-05/0.3165, allocations: 11.98 kB / 0.5626 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.62e-05/0.3166, allocations: 3.938 kB / 0.5626 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.657e-06/0.3166, allocations: 0 / 0.5626 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.3167, allocations: 63.95 kB / 0.5626 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.947e-06/0.3167, allocations: 3.938 kB / 0.5626 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.759e-05/0.3167, allocations: 0 / 0.5626 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001355/0.3169, allocations: 55.72 kB / 0.5627 GB, free: 3.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3169, allocations: 0 / 0.5627 GB, free: 3.309 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3169, allocations: 0 / 0.5627 GB, free: 3.309 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.3169, allocations: 0 / 0.5627 GB, free: 3.309 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.0003345/0.3172, allocations: 284.7 kB / 0.563 GB, free: 3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.3173, allocations: 16.03 kB / 0.563 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.3173, allocations: 4.922 kB / 0.563 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.613e-05/0.3174, allocations: 102.5 kB / 0.5631 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3174, allocations: 4.312 kB / 0.5631 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-06/0.3174, allocations: 4.375 kB / 0.5631 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.3175, allocations: 55.97 kB / 0.5631 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3175, allocations: 4.172 kB / 0.5631 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.3175, allocations: 7.938 kB / 0.5632 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.788e-06/0.3175, allocations: 0 / 0.5632 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.932e-05/0.3175, allocations: 29.64 kB / 0.5632 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001068/0.3176, allocations: 105.3 kB / 0.5633 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.071e-05/0.3177, allocations: 40.28 kB / 0.5633 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.936e-05/0.3177, allocations: 34.66 kB / 0.5634 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.3177, allocations: 0 / 0.5634 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.3178, allocations: 60.27 kB / 0.5634 GB, free: 2.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3178, allocations: 0 / 0.5634 GB, free: 2.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001893/0.318, allocations: 122.7 kB / 0.5635 GB, free: 2.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.318, allocations: 81.11 kB / 0.5636 GB, free: 2.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.71e-05/0.3181, allocations: 97.81 kB / 0.5637 GB, free: 2.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.3181, allocations: 25.7 kB / 0.5637 GB, free: 2.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/0.3181, allocations: 84.27 kB / 0.5638 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.3182, allocations: 0 / 0.5638 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.3182, allocations: 13.72 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3183, allocations: 314.8 kB / 0.5641 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.848e-05/0.3184, allocations: 25.7 kB / 0.5641 GB, free: 1.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.183e-05/0.3184, allocations: 29.7 kB / 0.5642 GB, free: 1.562 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.216e-05/0.3184, allocations: 60.27 kB / 0.5642 GB, free: 1.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3184, allocations: 4 kB / 0.5642 GB, free: 1.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.387e-05/0.3185, allocations: 89.03 kB / 0.5643 GB, free: 1.379 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.3186, allocations: 37.8 kB / 0.5644 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3186, allocations: 0 / 0.5644 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3186, allocations: 0 / 0.5644 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.595e-06/0.3186, allocations: 7.875 kB / 0.5644 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3186, allocations: 0 / 0.5644 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.3186, allocations: 4 kB / 0.5644 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.3186, allocations: 7.984 kB / 0.5644 GB, free: 1.316 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 9.328e-05/0.3187, allocations: 135.5 kB / 0.5645 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.3187, allocations: 7.984 kB / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.678e-06/0.3187, allocations: 3 kB / 0.5645 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3187, allocations: 11.88 kB / 0.5645 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3187, allocations: 0 / 0.5645 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3187, allocations: 0 / 0.5645 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.398e-05/0.3188, allocations: 93.33 kB / 0.5646 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3188, allocations: 4 kB / 0.5646 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3188, allocations: 0 / 0.5646 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3188, allocations: 0 / 0.5646 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.3188, allocations: 0 / 0.5646 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3188, allocations: 0 / 0.5646 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3188, allocations: 3.938 kB / 0.5646 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.319, allocations: 120.5 kB / 0.5647 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-06/0.319, allocations: 4.031 kB / 0.5647 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.319, allocations: 7.984 kB / 0.5647 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.319, allocations: 0 / 0.5647 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.319, allocations: 3.938 kB / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.319, allocations: 0 / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.353e-05/0.319, allocations: 75.28 kB / 0.5648 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.319, allocations: 4 kB / 0.5648 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002331/0.3193, allocations: 19.94 kB / 0.5648 GB, free: 0.7539 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.0006867/0.32, allocations: 288.9 kB / 0.5651 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.3201, allocations: 126.7 kB / 0.5652 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3201, allocations: 3.938 kB / 0.5652 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.185e-05/0.3202, allocations: 81.11 kB / 0.5653 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.3203, allocations: 0 / 0.5653 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001894/0.3205, allocations: 114.7 kB / 0.5654 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.21e-05/0.3205, allocations: 55.36 kB / 0.5655 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.298e-06/0.3205, allocations: 3.938 kB / 0.5655 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.116e-05/0.3205, allocations: 7.438 kB / 0.5655 GB, free: 68 kB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3205, allocations: 0 / 0.5655 GB, free: 68 kB / 398.1 MB Notification: Performance of Templates: time 0.0033/0.3238, allocations: 0.8031 MB / 0.5663 GB, free: 15.26 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 -s gbode -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: 4.927028826990863]