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.001428/0.001428, allocations: 102 kB / 21.22 MB, free: 0.6562 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.001847/0.001847, allocations: 183.9 kB / 24.51 MB, free: 4.016 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.509/1.509, allocations: 225.6 MB / 253.3 MB, free: 13.05 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.2407/0.2407, allocations: 44.9 MB / 353.5 MB, free: 11.83 MB / 286.1 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.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.002074/0.002074, allocations: 67.88 kB / 497.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4294/0.4314, allocations: 64.3 MB / 0.5488 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002092/0.4335, allocations: 0.4907 MB / 0.5493 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.4346, allocations: 268.2 kB / 0.5495 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.948e-05/0.4346, allocations: 0 / 0.5495 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.998e-05/0.4346, allocations: 0 / 0.5495 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.715e-06/0.4346, allocations: 1.062 kB / 0.5495 GB, free: 12.57 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.0004451/0.4351, allocations: 55.81 kB / 0.5496 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.643e-05/0.4351, allocations: 9.031 kB / 0.5496 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.107e-05/0.4352, allocations: 1.469 kB / 0.5496 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.069e-05/0.4352, allocations: 5.375 kB / 0.5496 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.664e-05/0.4352, allocations: 0 / 0.5496 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.4352, allocations: 1.344 kB / 0.5496 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002177/0.4355, allocations: 63.28 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.4355, allocations: 1.375 kB / 0.5497 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.4355, allocations: 7.984 kB / 0.5497 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.4357, allocations: 50.02 kB / 0.5497 GB, free: 12.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4357, allocations: 0 / 0.5497 GB, free: 12.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4357, allocations: 0 / 0.5497 GB, free: 12.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.4357, allocations: 1.344 kB / 0.5497 GB, free: 12.46 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.0004474/0.4361, allocations: 290.8 kB / 0.55 GB, free: 12.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.4362, allocations: 10.33 kB / 0.55 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.4362, allocations: 2.125 kB / 0.55 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.4363, allocations: 103.9 kB / 0.5501 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.4363, allocations: 384 / 0.5501 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.62e-05/0.4363, allocations: 1.844 kB / 0.5501 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.4364, allocations: 28.7 kB / 0.5501 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.4365, allocations: 192 / 0.5501 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.4365, allocations: 3.938 kB / 0.5501 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4365, allocations: 1.312 kB / 0.5501 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.605e-05/0.4365, allocations: 13.42 kB / 0.5502 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/0.4367, allocations: 117.9 kB / 0.5503 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.62e-05/0.4367, allocations: 16.11 kB / 0.5503 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.4368, allocations: 6.016 kB / 0.5503 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-06/0.4368, allocations: 1.562 kB / 0.5503 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/0.4368, allocations: 56.27 kB / 0.5503 GB, free: 11.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.863e-06/0.4368, allocations: 5.25 kB / 0.5503 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002247/0.4371, allocations: 74.27 kB / 0.5504 GB, free: 11.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/0.4371, allocations: 78.2 kB / 0.5505 GB, free: 11.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.4372, allocations: 89.86 kB / 0.5506 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.4372, allocations: 25.7 kB / 0.5506 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.329e-05/0.4373, allocations: 81.7 kB / 0.5507 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.4373, allocations: 3.938 kB / 0.5507 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.4374, allocations: 16.56 kB / 0.5507 GB, free: 11.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4375, allocations: 319 kB / 0.551 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.418e-05/0.4376, allocations: 1.438 kB / 0.551 GB, free: 10.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.556e-06/0.4376, allocations: 1.438 kB / 0.551 GB, free: 10.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.389e-05/0.4377, allocations: 63.05 kB / 0.5511 GB, free: 10.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4377, allocations: 0 / 0.5511 GB, free: 10.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001123/0.4378, allocations: 65.72 kB / 0.5511 GB, free: 10.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.363e-05/0.4378, allocations: 36.69 kB / 0.5512 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.4378, allocations: 0 / 0.5512 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.4378, allocations: 9.438 kB / 0.5512 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.313e-06/0.4378, allocations: 0 / 0.5512 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.4378, allocations: 0 / 0.5512 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.113e-05/0.4379, allocations: 1.312 kB / 0.5512 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.4379, allocations: 1.125 kB / 0.5512 GB, free: 10.8 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.0001279/0.438, allocations: 138.1 kB / 0.5513 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.438, allocations: 3.953 kB / 0.5513 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.438, allocations: 12.42 kB / 0.5513 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.438, allocations: 3.984 kB / 0.5513 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.438, allocations: 4 kB / 0.5513 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.4381, allocations: 0 / 0.5513 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.4382, allocations: 119.5 kB / 0.5514 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4382, allocations: 0 / 0.5514 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-06/0.4382, allocations: 4 kB / 0.5514 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.4382, allocations: 1.625 kB / 0.5514 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.4382, allocations: 3.938 kB / 0.5515 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.4382, allocations: 0 / 0.5515 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4382, allocations: 5.547 kB / 0.5515 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.4384, allocations: 97.36 kB / 0.5516 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.4384, allocations: 5.281 kB / 0.5516 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.4384, allocations: 5.281 kB / 0.5516 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.4384, allocations: 0 / 0.5516 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.28e-05/0.4384, allocations: 5.422 kB / 0.5516 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.4384, allocations: 0 / 0.5516 GB, free: 10.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.847e-05/0.4385, allocations: 75.28 kB / 0.5516 GB, free: 10.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4385, allocations: 1.562 kB / 0.5516 GB, free: 10.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.4389, allocations: 18.84 kB / 0.5517 GB, free: 10.26 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.000889/0.4398, allocations: 285.1 kB / 0.5519 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.4399, allocations: 64.86 kB / 0.552 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4399, allocations: 0 / 0.552 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.189e-05/0.4399, allocations: 54.22 kB / 0.552 GB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.4401, allocations: 2.781 kB / 0.552 GB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002396/0.4404, allocations: 80.2 kB / 0.5521 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/0.4409, allocations: 0.6767 MB / 0.5528 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.714e-06/0.4409, allocations: 5.5 kB / 0.5528 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.896e-05/0.441, allocations: 7.438 kB / 0.5528 GB, free: 9.148 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.441, allocations: 0 / 0.5528 GB, free: 9.148 MB / 398.1 MB Notification: Performance of Templates: time 0.005006/0.446, allocations: 0.7918 MB / 0.5536 GB, free: 8.723 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.401357821188867]