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.001491/0.001491, allocations: 114.1 kB / 18.45 MB, free: 4.605 MB / 14.72 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.001857/0.001857, allocations: 208.3 kB / 21.41 MB, free: 1.648 MB / 14.72 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.546/1.546, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 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.2231/0.2231, allocations: 46.93 MB / 357.8 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] 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 0.001999/0.001999, allocations: 63.91 kB / 0.492 GB, free: 7.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.137, allocations: 65.99 MB / 0.5565 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001641/0.1386, allocations: 498.8 kB / 0.557 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006638/0.1393, allocations: 247.8 kB / 0.5572 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.849e-05/0.1393, allocations: 0 / 0.5572 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.266e-05/0.1393, allocations: 4 kB / 0.5572 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1393, allocations: 0 / 0.5572 GB, free: 4.648 MB / 414.1 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.0003419/0.1397, allocations: 51.81 kB / 0.5572 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.587e-05/0.1397, allocations: 8 kB / 0.5573 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.766e-05/0.1397, allocations: 7.922 kB / 0.5573 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.415e-05/0.1398, allocations: 0 / 0.5573 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.219e-05/0.1398, allocations: 4 kB / 0.5573 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-06/0.1398, allocations: 0 / 0.5573 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.1399, allocations: 63.94 kB / 0.5573 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-06/0.14, allocations: 0 / 0.5573 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.14, allocations: 4 kB / 0.5573 GB, free: 4.512 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.1401, allocations: 55.81 kB / 0.5574 GB, free: 4.457 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1401, allocations: 4 kB / 0.5574 GB, free: 4.453 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1401, allocations: 0 / 0.5574 GB, free: 4.453 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.1401, allocations: 0 / 0.5574 GB, free: 4.453 MB / 414.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.0004157/0.1406, allocations: 357.1 kB / 0.5577 GB, free: 4.047 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1406, allocations: 8.031 kB / 0.5577 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.1406, allocations: 0.9375 kB / 0.5577 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.1407, allocations: 168.3 kB / 0.5579 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1408, allocations: 4.375 kB / 0.5579 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.1408, allocations: 4.375 kB / 0.5579 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.492e-05/0.1409, allocations: 26.27 kB / 0.5579 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.1409, allocations: 4.188 kB / 0.5579 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1409, allocations: 3.938 kB / 0.5579 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1409, allocations: 0 / 0.5579 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.741e-05/0.1409, allocations: 0 / 0.5579 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.1411, allocations: 149.7 kB / 0.5581 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.508e-05/0.1411, allocations: 26.53 kB / 0.5581 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.458e-05/0.1411, allocations: 8.859 kB / 0.5581 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.1411, allocations: 0 / 0.5581 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.1412, allocations: 60.33 kB / 0.5582 GB, free: 3.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1412, allocations: 0 / 0.5582 GB, free: 3.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002019/0.1414, allocations: 75.27 kB / 0.5582 GB, free: 3.387 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.1415, allocations: 77.11 kB / 0.5583 GB, free: 3.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.863e-05/0.1415, allocations: 93.81 kB / 0.5584 GB, free: 3.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1415, allocations: 29.83 kB / 0.5584 GB, free: 3.156 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.316e-05/0.1416, allocations: 81.8 kB / 0.5585 GB, free: 3.074 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.1416, allocations: 0 / 0.5585 GB, free: 3.074 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.1416, allocations: 17.66 kB / 0.5585 GB, free: 3.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1418, allocations: 310.8 kB / 0.5588 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.1418, allocations: 4 kB / 0.5588 GB, free: 2.734 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.29e-06/0.1418, allocations: 0 / 0.5588 GB, free: 2.734 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.25e-05/0.1418, allocations: 64.31 kB / 0.5589 GB, free: 2.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1418, allocations: 4 kB / 0.5589 GB, free: 2.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.301e-05/0.1419, allocations: 59.41 kB / 0.559 GB, free: 2.582 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.142, allocations: 31.58 kB / 0.559 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.142, allocations: 7.938 kB / 0.559 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.142, allocations: 3.938 kB / 0.559 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.142, allocations: 0 / 0.559 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.142, allocations: 0 / 0.559 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.539e-05/0.142, allocations: 3.938 kB / 0.559 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.142, allocations: 0 / 0.559 GB, free: 2.531 MB / 414.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.000104/0.1421, allocations: 147.6 kB / 0.5591 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.919e-06/0.1421, allocations: 3.984 kB / 0.5591 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.035e-05/0.1421, allocations: 7.062 kB / 0.5592 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1421, allocations: 0 / 0.5592 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1421, allocations: 0 / 0.5592 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1421, allocations: 4 kB / 0.5592 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.1423, allocations: 145.7 kB / 0.5593 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1423, allocations: 4 kB / 0.5593 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1423, allocations: 0 / 0.5593 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.1423, allocations: 0 / 0.5593 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.1423, allocations: 7.938 kB / 0.5593 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.1423, allocations: 4 kB / 0.5593 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1423, allocations: 0 / 0.5593 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.1424, allocations: 86.83 kB / 0.5594 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.905e-05/0.1424, allocations: 77.11 kB / 0.5595 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.1424, allocations: 7.938 kB / 0.5595 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.126e-06/0.1424, allocations: 3.938 kB / 0.5595 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.89e-05/0.1425, allocations: 7.969 kB / 0.5595 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.1425, allocations: 0 / 0.5595 GB, free: 1.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.322e-05/0.1425, allocations: 75.28 kB / 0.5596 GB, free: 1.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1425, allocations: 0 / 0.5596 GB, free: 1.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1427, allocations: 27.92 kB / 0.5596 GB, free: 1.828 MB / 414.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.0006992/0.1434, allocations: 277.3 kB / 0.5598 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001141/0.1435, allocations: 63.41 kB / 0.5599 GB, free: 1.539 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1435, allocations: 0 / 0.5599 GB, free: 1.539 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.57e-05/0.1436, allocations: 55.47 kB / 0.56 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.1437, allocations: 8.906 kB / 0.56 GB, free: 1.469 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000209/0.1439, allocations: 110.8 kB / 0.5601 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.1442, allocations: 0.669 MB / 0.5607 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.042e-05/0.1442, allocations: 7.438 kB / 0.5607 GB, free: 0.625 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1442, allocations: 3.938 kB / 0.5607 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of Templates: time 0.00289/0.1471, allocations: 0.956 MB / 0.5617 GB, free: 15.66 MB / 430.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/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: 7.539648489997489]