Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002147/0.002147, allocations: 106.2 kB / 19.81 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002459/0.002459, allocations: 191.4 kB / 22.98 MB, free: 5.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.6 MB / 251.6 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2945/0.2945, allocations: 44.91 MB / 351.6 MB, free: 12.23 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 71.88 kB / 495.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.375, allocations: 64.25 MB / 0.5464 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001685/0.3767, allocations: 490.7 kB / 0.5468 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007242/0.3774, allocations: 267 kB / 0.5471 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.916e-05/0.3774, allocations: 0 / 0.5471 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.041e-05/0.3774, allocations: 0 / 0.5471 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.122e-06/0.3774, allocations: 4.938 kB / 0.5471 GB, free: 12.64 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454: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.00036/0.3778, allocations: 51.66 kB / 0.5471 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.728e-05/0.3779, allocations: 9.344 kB / 0.5471 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.667e-05/0.3779, allocations: 9.328 kB / 0.5472 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.672e-05/0.3779, allocations: 1.281 kB / 0.5472 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.41e-05/0.3779, allocations: 0 / 0.5472 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.378, allocations: 5.141 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.3781, allocations: 60.58 kB / 0.5472 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.314e-06/0.3781, allocations: 0 / 0.5472 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.185e-05/0.3781, allocations: 1.406 kB / 0.5472 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.3783, allocations: 52.67 kB / 0.5473 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3783, allocations: 0 / 0.5473 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3783, allocations: 5.312 kB / 0.5473 GB, free: 12.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3783, allocations: 4 kB / 0.5473 GB, free: 12.52 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.000414/0.3787, allocations: 364.2 kB / 0.5476 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3788, allocations: 9.062 kB / 0.5476 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.3788, allocations: 2.219 kB / 0.5476 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.3789, allocations: 168.3 kB / 0.5478 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-06/0.3789, allocations: 384 / 0.5478 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.3789, allocations: 1.75 kB / 0.5478 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.278e-05/0.379, allocations: 29.02 kB / 0.5478 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.379, allocations: 4.188 kB / 0.5478 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3791, allocations: 3.938 kB / 0.5478 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3791, allocations: 1.344 kB / 0.5478 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.861e-05/0.3791, allocations: 1.375 kB / 0.5478 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001619/0.3792, allocations: 147.1 kB / 0.548 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.294e-05/0.3793, allocations: 23.81 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.561e-05/0.3793, allocations: 6.016 kB / 0.548 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.3793, allocations: 0 / 0.548 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.812e-05/0.3794, allocations: 65.55 kB / 0.5481 GB, free: 11.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3794, allocations: 0 / 0.5481 GB, free: 11.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001996/0.3796, allocations: 71.33 kB / 0.5481 GB, free: 11.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.3796, allocations: 78.42 kB / 0.5482 GB, free: 11.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.553e-05/0.3797, allocations: 89.86 kB / 0.5483 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3797, allocations: 25.7 kB / 0.5483 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.3797, allocations: 81.39 kB / 0.5484 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.3797, allocations: 4.125 kB / 0.5484 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.827e-05/0.3798, allocations: 15.91 kB / 0.5484 GB, free: 11.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3799, allocations: 316 kB / 0.5487 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.003e-05/0.3799, allocations: 1.219 kB / 0.5487 GB, free: 10.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.3799, allocations: 0 / 0.5487 GB, free: 10.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.575e-05/0.38, allocations: 67.62 kB / 0.5488 GB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.38, allocations: 0.9375 kB / 0.5488 GB, free: 10.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.985e-05/0.3801, allocations: 58.62 kB / 0.5488 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.3801, allocations: 37.2 kB / 0.5489 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3801, allocations: 3.938 kB / 0.5489 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3801, allocations: 5.031 kB / 0.5489 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3801, allocations: 0 / 0.5489 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.3801, allocations: 1.156 kB / 0.5489 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.3801, allocations: 3.938 kB / 0.5489 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.3801, allocations: 1.688 kB / 0.5489 GB, free: 10.66 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.0001036/0.3802, allocations: 142 kB / 0.549 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.3803, allocations: 5.453 kB / 0.549 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.52e-05/0.3803, allocations: 15.02 kB / 0.549 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3803, allocations: 0 / 0.549 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.3803, allocations: 1.438 kB / 0.5491 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3803, allocations: 0 / 0.5491 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.3804, allocations: 147 kB / 0.5492 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3804, allocations: 0 / 0.5492 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-06/0.3804, allocations: 5.422 kB / 0.5492 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.3804, allocations: 0 / 0.5492 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.3804, allocations: 5.438 kB / 0.5492 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3804, allocations: 0 / 0.5492 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3804, allocations: 4 kB / 0.5492 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.952e-05/0.3805, allocations: 89.27 kB / 0.5493 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.125e-05/0.3806, allocations: 78.61 kB / 0.5494 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.3806, allocations: 5.312 kB / 0.5494 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-06/0.3806, allocations: 0 / 0.5494 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.709e-05/0.3806, allocations: 5.062 kB / 0.5494 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.3806, allocations: 0 / 0.5494 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.767e-05/0.3806, allocations: 80.69 kB / 0.5495 GB, free: 10.01 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3806, allocations: 0 / 0.5495 GB, free: 10.01 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.3809, allocations: 27.8 kB / 0.5495 GB, free: 9.996 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.0007124/0.3816, allocations: 281.6 kB / 0.5497 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.3817, allocations: 61.22 kB / 0.5498 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3817, allocations: 0 / 0.5498 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.92e-05/0.3818, allocations: 54.62 kB / 0.5499 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.3819, allocations: 1.969 kB / 0.5499 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000205/0.3821, allocations: 87.09 kB / 0.5499 GB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.3824, allocations: 0.6738 MB / 0.5506 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.611e-06/0.3824, allocations: 0 / 0.5506 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.584e-05/0.3824, allocations: 12.47 kB / 0.5506 GB, free: 8.887 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3824, allocations: 0 / 0.5506 GB, free: 8.887 MB / 398.1 MB Notification: Performance of Templates: time 0.003672/0.3861, allocations: 0.7983 MB / 0.5514 GB, free: 8.457 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 5.337673516012728]