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.001019/0.001019, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.00101/0.00101, allocations: 163.6 kB / 24.99 MB, free: 8.746 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 0.9845/0.9845, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.258/0.258, allocations: 32.81 MB / 294.6 MB, free: 1.281 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.683e-06/1.683e-06, allocations: 0 / 376 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.482e-05, allocations: 5.828 kB / 376 MB, free: 5.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001146/0.00117, allocations: 0.497 MB / 376.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005256/0.001696, allocations: 255.3 kB / 376.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.486e-05/0.001721, allocations: 0 / 376.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.572e-05/0.001737, allocations: 3.938 kB / 376.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.001742, allocations: 0 / 376.7 MB, free: 4.254 MB / 346.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.0002865/0.002029, allocations: 55.69 kB / 376.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.02e-05/0.002079, allocations: 3.984 kB / 376.8 MB, free: 4.195 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.002113, allocations: 4 kB / 376.8 MB, free: 4.191 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.347e-05/0.002137, allocations: 4 kB / 376.8 MB, free: 4.188 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.465e-05/0.002161, allocations: 4 kB / 376.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.00217, allocations: 0 / 376.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.002286, allocations: 59.89 kB / 376.8 MB, free: 4.125 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.744e-06/0.002294, allocations: 3.984 kB / 376.8 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.883e-05/0.002313, allocations: 3.938 kB / 376.9 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.002426, allocations: 63.86 kB / 376.9 MB, free: 4.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.002429, allocations: 0 / 376.9 MB, free: 4.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.00243, allocations: 0 / 376.9 MB, free: 4.055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.002433, allocations: 0 / 376.9 MB, free: 4.055 MB / 346.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.0002888/0.002722, allocations: 385.9 kB / 377.3 MB, free: 3.633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.002764, allocations: 12.03 kB / 377.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.002803, allocations: 0.9375 kB / 377.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.047e-05/0.002874, allocations: 108.6 kB / 377.4 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.002885, allocations: 384 / 377.4 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-06/0.002894, allocations: 4.375 kB / 377.4 MB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.807e-05/0.002972, allocations: 51.97 kB / 377.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.002978, allocations: 192 / 377.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.393e-06/0.002985, allocations: 4.375 kB / 377.5 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.002992, allocations: 4.312 kB / 377.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.978e-05/0.003012, allocations: 37.62 kB / 377.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.683e-05/0.003089, allocations: 112.6 kB / 377.6 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.233e-05/0.003131, allocations: 56.7 kB / 377.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.076e-05/0.003152, allocations: 41.48 kB / 377.7 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-06/0.003156, allocations: 0 / 377.7 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.003187, allocations: 59.09 kB / 377.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.003188, allocations: 0 / 377.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001494/0.003337, allocations: 118.8 kB / 377.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.003373, allocations: 81.11 kB / 378 MB, free: 2.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.899e-05/0.003412, allocations: 146.2 kB / 378.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.314e-06/0.003419, allocations: 29.83 kB / 378.1 MB, free: 2.598 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.003446, allocations: 126.9 kB / 378.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.003464, allocations: 4.328 kB / 378.3 MB, free: 2.465 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.003489, allocations: 19.38 kB / 378.3 MB, free: 2.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.003611, allocations: 496.1 kB / 378.8 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.339e-05/0.003635, allocations: 29.7 kB / 378.8 MB, free: 1.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.355e-05/0.003648, allocations: 29.7 kB / 378.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.414e-05/0.003692, allocations: 63.09 kB / 378.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.003694, allocations: 0 / 378.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.035e-05/0.003754, allocations: 101.1 kB / 379 MB, free: 1.676 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.00378, allocations: 29.7 kB / 379 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.003784, allocations: 0 / 379 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.003794, allocations: 3.938 kB / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.003795, allocations: 0 / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.0038, allocations: 0 / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.266e-05/0.003813, allocations: 7.938 kB / 379 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-06/0.003818, allocations: 4 kB / 379 MB, free: 1.625 MB / 346.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.64e-05/0.003885, allocations: 182.3 kB / 379.2 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.209e-06/0.00389, allocations: 4 kB / 379.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.953e-06/0.003897, allocations: 7.031 kB / 379.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.003898, allocations: 0 / 379.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.003902, allocations: 0 / 379.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.003904, allocations: 0 / 379.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.281e-05/0.003957, allocations: 116.6 kB / 379.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.003958, allocations: 4 kB / 379.3 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.804e-06/0.00396, allocations: 7.922 kB / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.003962, allocations: 0 / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.003966, allocations: 0 / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.003967, allocations: 0 / 379.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.003969, allocations: 4 kB / 379.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.146e-05/0.00405, allocations: 139.7 kB / 379.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-06/0.004054, allocations: 0 / 379.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.004066, allocations: 0 / 379.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.971e-06/0.004072, allocations: 4 kB / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-06/0.004082, allocations: 0 / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-06/0.004084, allocations: 0 / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.733e-05/0.004111, allocations: 119.2 kB / 379.6 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004111, allocations: 0 / 379.6 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001545/0.004265, allocations: 27.92 kB / 379.6 MB, free: 0.9375 MB / 346.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.0005151/0.004781, allocations: 304.6 kB / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.596e-05/0.004876, allocations: 122.5 kB / 380.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.004878, allocations: 0 / 380.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.879e-05/0.004907, allocations: 92.78 kB / 380.1 MB, free: 464 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.813e-05/0.004995, allocations: 3.984 kB / 380.2 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001567/0.005151, allocations: 117.6 kB / 380.3 MB, free: 304 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.644e-05/0.005178, allocations: 51.36 kB / 380.3 MB, free: 232 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.005183, allocations: 0 / 380.3 MB, free: 232 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.848e-06/0.005193, allocations: 12.5 kB / 380.3 MB, free: 220 kB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.005194, allocations: 4.125 kB / 380.3 MB, free: 216 kB / 346.7 MB Notification: Performance of Templates: time 0.00239/0.007583, allocations: 0.8344 MB / 381.2 MB, free: 15.38 MB / 362.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: 3.0694123320281506]