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.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.0009983/0.0009983, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 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.001046/0.001046, allocations: 170.8 kB / 24.92 MB, free: 8.773 MB / 18.57 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.006/1.006, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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.2497/0.2497, allocations: 32.8 MB / 294.6 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] 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.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.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 1.874e-06/1.874e-06, allocations: 0 / 323.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.141e-05/3.328e-05, allocations: 3.297 kB / 323.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001237/0.00127, allocations: 0.4894 MB / 323.7 MB, free: 9.262 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004882/0.001759, allocations: 259.1 kB / 323.9 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.189e-05/0.00178, allocations: 0 / 323.9 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.35e-05/0.001794, allocations: 0 / 323.9 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.0018, allocations: 0 / 323.9 MB, free: 9.008 MB / 298.7 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.0003006/0.002101, allocations: 59.69 kB / 324 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.03e-05/0.002151, allocations: 8.562 kB / 324 MB, free: 8.941 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.598e-05/0.002187, allocations: 4 kB / 324 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.246e-05/0.00222, allocations: 4 kB / 324 MB, free: 8.934 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.771e-05/0.002247, allocations: 3.984 kB / 324 MB, free: 8.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.002258, allocations: 0 / 324 MB, free: 8.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.002378, allocations: 67.88 kB / 324.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.002389, allocations: 0 / 324.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.681e-05/0.002406, allocations: 3.938 kB / 324.1 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.002522, allocations: 55.88 kB / 324.1 MB, free: 8.805 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.002525, allocations: 0 / 324.1 MB, free: 8.805 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.002526, allocations: 0 / 324.1 MB, free: 8.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.002529, allocations: 0 / 324.1 MB, free: 8.805 MB / 298.7 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.0002515/0.002781, allocations: 262.3 kB / 324.4 MB, free: 8.516 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.002819, allocations: 12.03 kB / 324.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.753e-05/0.002847, allocations: 8.922 kB / 324.4 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.831e-05/0.002905, allocations: 101.8 kB / 324.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.002915, allocations: 384 / 324.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.002928, allocations: 4.312 kB / 324.5 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.517e-05/0.002994, allocations: 55.97 kB / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.003, allocations: 192 / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.841e-06/0.003006, allocations: 384 / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.003011, allocations: 384 / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.75e-05/0.003028, allocations: 41.56 kB / 324.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.562e-05/0.003094, allocations: 57.67 kB / 324.7 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.382e-05/0.003138, allocations: 48.31 kB / 324.7 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.607e-05/0.003154, allocations: 34.5 kB / 324.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-06/0.003158, allocations: 4.062 kB / 324.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.003191, allocations: 60.27 kB / 324.8 MB, free: 8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.003192, allocations: 0 / 324.8 MB, free: 8 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001143/0.003307, allocations: 114.8 kB / 324.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.003342, allocations: 77.11 kB / 325 MB, free: 7.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.973e-05/0.003371, allocations: 89.86 kB / 325.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.003379, allocations: 25.7 kB / 325.1 MB, free: 7.641 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.003402, allocations: 84.27 kB / 325.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.003417, allocations: 1.203 kB / 325.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.009e-05/0.003437, allocations: 17.7 kB / 325.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.003507, allocations: 318.8 kB / 325.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.878e-05/0.003525, allocations: 37.64 kB / 325.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.135e-05/0.003537, allocations: 25.7 kB / 325.6 MB, free: 7.137 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.129e-05/0.003578, allocations: 64.27 kB / 325.7 MB, free: 7.059 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.003581, allocations: 0 / 325.7 MB, free: 7.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.462e-05/0.003636, allocations: 85.09 kB / 325.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/0.003671, allocations: 37.8 kB / 325.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.003676, allocations: 0 / 325.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.003689, allocations: 0 / 325.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.394e-06/0.003697, allocations: 3.984 kB / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.0037, allocations: 0 / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.337e-05/0.003713, allocations: 0 / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.003722, allocations: 7.984 kB / 325.8 MB, free: 6.902 MB / 298.7 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 6.888e-05/0.003791, allocations: 139.4 kB / 325.9 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.562e-06/0.003798, allocations: 7.984 kB / 325.9 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.576e-06/0.003806, allocations: 3 kB / 325.9 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.003808, allocations: 0 / 325.9 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.003809, allocations: 4 kB / 325.9 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.003813, allocations: 0 / 325.9 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.517e-05/0.003868, allocations: 65.84 kB / 326 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-07/0.003869, allocations: 0 / 326 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-07/0.003869, allocations: 0 / 326 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.00387, allocations: 3.938 kB / 326 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-06/0.003874, allocations: 0 / 326 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.003875, allocations: 0 / 326 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.003876, allocations: 0 / 326 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.926e-05/0.003955, allocations: 116.5 kB / 326.1 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-06/0.003959, allocations: 4.375 kB / 326.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.003972, allocations: 7.984 kB / 326.1 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.159e-06/0.003977, allocations: 0 / 326.1 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.003987, allocations: 7.938 kB / 326.1 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-06/0.003989, allocations: 0 / 326.1 MB, free: 6.488 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.933e-06/0.003996, allocations: 4.859 kB / 326.1 MB, free: 6.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003996, allocations: 0 / 326.1 MB, free: 6.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001239/0.00412, allocations: 19.94 kB / 326.2 MB, free: 6.461 MB / 298.7 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.0006131/0.004733, allocations: 343 kB / 326.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.927e-05/0.004832, allocations: 119.7 kB / 326.6 MB, free: 6.113 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.004834, allocations: 0 / 326.6 MB, free: 6.113 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.673e-05/0.004861, allocations: 85.97 kB / 326.7 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.721e-05/0.004908, allocations: 10.27 kB / 326.7 MB, free: 6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001544/0.005063, allocations: 108.6 kB / 326.8 MB, free: 5.859 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.627e-05/0.005089, allocations: 51.36 kB / 326.9 MB, free: 5.789 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.727e-06/0.005098, allocations: 11.94 kB / 326.9 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.005131, allocations: 55.36 kB / 326.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005131, allocations: 0 / 326.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of Templates: time 0.002505/0.007637, allocations: 0.9309 MB / 327.9 MB, free: 4.797 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9447073698975146]