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.001476/0.001476, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.002031/0.002031, allocations: 169.3 kB / 24.27 MB, free: 144 kB / 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.523/1.523, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.3425/0.3425, allocations: 34.26 MB / 295.3 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 179] 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 1.633e-06/1.633e-06, allocations: 0 / 377.3 MB, free: 3.004 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.929e-05/3.092e-05, allocations: 2.312 kB / 377.3 MB, free: 3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001767/0.001798, allocations: 496.2 kB / 377.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007961/0.002594, allocations: 255.3 kB / 378 MB, free: 2.266 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.879e-05/0.002623, allocations: 0 / 378 MB, free: 2.266 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.002636, allocations: 0 / 378 MB, free: 2.266 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.002642, allocations: 0 / 378 MB, free: 2.266 MB / 346.7 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.0004432/0.003085, allocations: 59.69 kB / 378 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.563e-05/0.003141, allocations: 0 / 378 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.368e-05/0.003185, allocations: 8 kB / 378.1 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.093e-05/0.003216, allocations: 4 kB / 378.1 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.155e-05/0.003247, allocations: 0 / 378.1 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.003258, allocations: 0 / 378.1 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.00346, allocations: 67.81 kB / 378.1 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.097e-06/0.003469, allocations: 0 / 378.1 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.0035, allocations: 7.938 kB / 378.1 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.003674, allocations: 59.86 kB / 378.2 MB, free: 2.062 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.003677, allocations: 0 / 378.2 MB, free: 2.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.003678, allocations: 0 / 378.2 MB, free: 2.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.003682, allocations: 0 / 378.2 MB, free: 2.062 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.0004531/0.004136, allocations: 283.9 kB / 378.5 MB, free: 1.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.004182, allocations: 16.03 kB / 378.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.004235, allocations: 0.9375 kB / 378.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.004351, allocations: 109.8 kB / 378.6 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.004369, allocations: 4.375 kB / 378.6 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.004377, allocations: 384 / 378.6 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.0045, allocations: 63.91 kB / 378.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.004508, allocations: 192 / 378.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.004516, allocations: 384 / 378.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.004521, allocations: 384 / 378.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.402e-05/0.004565, allocations: 29.64 kB / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001553/0.00472, allocations: 97.33 kB / 378.8 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.282e-05/0.004803, allocations: 48.27 kB / 378.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.129e-05/0.004844, allocations: 34.66 kB / 378.9 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.004856, allocations: 0 / 378.9 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.061e-05/0.004936, allocations: 64.2 kB / 378.9 MB, free: 1.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.004937, allocations: 0 / 378.9 MB, free: 1.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002808/0.005218, allocations: 114.8 kB / 379 MB, free: 1.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.005289, allocations: 81.11 kB / 379.1 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.531e-05/0.005354, allocations: 89.86 kB / 379.2 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.005375, allocations: 25.7 kB / 379.2 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.725e-05/0.005422, allocations: 84.27 kB / 379.3 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.005442, allocations: 4 kB / 379.3 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.005479, allocations: 13.72 kB / 379.3 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.005691, allocations: 314.8 kB / 379.6 MB, free: 396 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.49e-05/0.005726, allocations: 29.69 kB / 379.7 MB, free: 360 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.314e-05/0.005749, allocations: 29.7 kB / 379.7 MB, free: 324 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.45e-05/0.005843, allocations: 68.2 kB / 379.8 MB, free: 240 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.005845, allocations: 0 / 379.8 MB, free: 240 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001125/0.005958, allocations: 85.11 kB / 379.8 MB, free: 136 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.006001, allocations: 33.69 kB / 379.9 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.006007, allocations: 4.094 kB / 379.9 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.006026, allocations: 0 / 379.9 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.006027, allocations: 3.938 kB / 379.9 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.006033, allocations: 4 kB / 379.9 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.00605, allocations: 3.938 kB / 379.9 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.006057, allocations: 0 / 379.9 MB, free: 80 kB / 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 0.0001348/0.006192, allocations: 139.5 kB / 380 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.006207, allocations: 3.953 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.937e-06/0.006216, allocations: 3 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.00622, allocations: 3.984 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.006226, allocations: 11.94 kB / 380.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.006229, allocations: 0 / 380.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.615e-05/0.006325, allocations: 101.3 kB / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.006326, allocations: 0 / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.006327, allocations: 0 / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.006328, allocations: 0 / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.006334, allocations: 0 / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.006335, allocations: 4 kB / 380.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.006336, allocations: 0 / 380.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.006594, allocations: 120.5 kB / 380.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-06/0.006598, allocations: 4.031 kB / 380.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.00661, allocations: 0 / 380.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.278e-05/0.006622, allocations: 4 kB / 380.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.73e-05/0.00664, allocations: 3.984 kB / 380.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.006642, allocations: 0 / 380.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.343e-05/0.006696, allocations: 75.28 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006696, allocations: 0 / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00025/0.006946, allocations: 23.94 kB / 380.4 MB, free: 15.52 MB / 362.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.000863/0.007809, allocations: 313.1 kB / 380.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.007958, allocations: 114.8 kB / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.007961, allocations: 4.062 kB / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.709e-05/0.008028, allocations: 81.11 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.008161, allocations: 4 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.008427, allocations: 116 kB / 381 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.439e-05/0.008491, allocations: 51.36 kB / 381.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.971e-06/0.008497, allocations: 0 / 381.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.826e-05/0.008515, allocations: 12.5 kB / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.008516, allocations: 0 / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of Templates: time 0.004844/0.01336, allocations: 0.8365 MB / 381.9 MB, free: 13.97 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/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.886715394910425]