Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001626/0.001626, allocations: 107.8 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002023/0.002023, allocations: 208.9 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2233/0.2233, allocations: 46.9 MB / 358.1 MB, free: 10.5 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002258/0.002258, allocations: 75.88 kB / 0.4923 GB, free: 8.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1291, allocations: 65.98 MB / 0.5568 GB, free: 5.945 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001671/0.1308, allocations: 492.8 kB / 0.5572 GB, free: 5.457 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006911/0.1315, allocations: 255.8 kB / 0.5575 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.217e-05/0.1315, allocations: 0 / 0.5575 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.1315, allocations: 3.938 kB / 0.5575 GB, free: 5.203 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.1315, allocations: 0 / 0.5575 GB, free: 5.203 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0003203/0.1318, allocations: 51.81 kB / 0.5575 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.486e-05/0.1319, allocations: 0 / 0.5575 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.205e-05/0.1319, allocations: 4 kB / 0.5575 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.373e-05/0.1319, allocations: 4 kB / 0.5576 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.036e-05/0.132, allocations: 0 / 0.5576 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.075e-06/0.132, allocations: 0 / 0.5576 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.1321, allocations: 71.92 kB / 0.5576 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.698e-06/0.1321, allocations: 0 / 0.5576 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.275e-05/0.1322, allocations: 7.938 kB / 0.5576 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.1323, allocations: 55.81 kB / 0.5577 GB, free: 5.012 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1323, allocations: 0 / 0.5577 GB, free: 5.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1323, allocations: 0 / 0.5577 GB, free: 5.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1323, allocations: 0 / 0.5577 GB, free: 5.012 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.0004128/0.1327, allocations: 357.1 kB / 0.558 GB, free: 4.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1328, allocations: 12.03 kB / 0.558 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.372e-05/0.1328, allocations: 0.9375 kB / 0.558 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.1329, allocations: 164.4 kB / 0.5582 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.936e-06/0.1329, allocations: 384 / 0.5582 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.133, allocations: 384 / 0.5582 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.774e-05/0.1331, allocations: 42.19 kB / 0.5582 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1331, allocations: 192 / 0.5582 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1331, allocations: 3.938 kB / 0.5582 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1331, allocations: 3.984 kB / 0.5582 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.921e-05/0.1331, allocations: 8 kB / 0.5582 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.1333, allocations: 145.7 kB / 0.5584 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.741e-05/0.1333, allocations: 14.58 kB / 0.5584 GB, free: 4.117 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.146e-05/0.1333, allocations: 8.953 kB / 0.5584 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-06/0.1333, allocations: 0 / 0.5584 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.983e-05/0.1334, allocations: 64.2 kB / 0.5585 GB, free: 4.027 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1334, allocations: 0 / 0.5585 GB, free: 4.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001922/0.1336, allocations: 71.33 kB / 0.5585 GB, free: 3.945 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.1337, allocations: 77.11 kB / 0.5586 GB, free: 3.852 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.183e-05/0.1337, allocations: 97.75 kB / 0.5587 GB, free: 3.746 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1337, allocations: 25.7 kB / 0.5587 GB, free: 3.715 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.344e-05/0.1338, allocations: 85.83 kB / 0.5588 GB, free: 3.629 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.1338, allocations: 0 / 0.5588 GB, free: 3.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.1338, allocations: 13.72 kB / 0.5588 GB, free: 3.609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.134, allocations: 319 kB / 0.5591 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.05e-05/0.134, allocations: 4 kB / 0.5591 GB, free: 3.285 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.134, allocations: 0 / 0.5591 GB, free: 3.285 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.723e-05/0.1341, allocations: 64.2 kB / 0.5592 GB, free: 3.207 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1341, allocations: 0 / 0.5592 GB, free: 3.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.05e-05/0.1342, allocations: 67.39 kB / 0.5593 GB, free: 3.129 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.1342, allocations: 29.7 kB / 0.5593 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1342, allocations: 0 / 0.5593 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.1342, allocations: 3.938 kB / 0.5593 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1342, allocations: 4.094 kB / 0.5593 GB, free: 3.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1342, allocations: 0 / 0.5593 GB, free: 3.086 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.907e-05/0.1342, allocations: 4 kB / 0.5593 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.1342, allocations: 0 / 0.5593 GB, free: 3.082 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.0001/0.1343, allocations: 135.5 kB / 0.5594 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.04e-05/0.1344, allocations: 4 kB / 0.5594 GB, free: 2.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.375e-05/0.1344, allocations: 11.05 kB / 0.5594 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1344, allocations: 0 / 0.5594 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1344, allocations: 0 / 0.5594 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1344, allocations: 4 kB / 0.5594 GB, free: 2.918 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.1345, allocations: 145.6 kB / 0.5596 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1345, allocations: 4 kB / 0.5596 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.1345, allocations: 0 / 0.5596 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1345, allocations: 0 / 0.5596 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.1345, allocations: 7.938 kB / 0.5596 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1345, allocations: 0 / 0.5596 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1345, allocations: 3.984 kB / 0.5596 GB, free: 2.711 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.1346, allocations: 90.84 kB / 0.5597 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.412e-05/0.1347, allocations: 77.11 kB / 0.5598 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.1347, allocations: 7.922 kB / 0.5598 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.1347, allocations: 0 / 0.5598 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.08e-05/0.1347, allocations: 4 kB / 0.5598 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.1347, allocations: 7.938 kB / 0.5598 GB, free: 2.484 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.618e-05/0.1347, allocations: 75.28 kB / 0.5598 GB, free: 2.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1347, allocations: 0 / 0.5598 GB, free: 2.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002713/0.135, allocations: 23.94 kB / 0.5599 GB, free: 2.387 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.0007217/0.1357, allocations: 270.1 kB / 0.5601 GB, free: 2.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.1359, allocations: 63.33 kB / 0.5602 GB, free: 2.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1359, allocations: 0 / 0.5602 GB, free: 2.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.945e-05/0.1359, allocations: 55.41 kB / 0.5602 GB, free: 2.031 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.136, allocations: 0 / 0.5602 GB, free: 2.031 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.1363, allocations: 106.8 kB / 0.5603 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.1366, allocations: 0.6768 MB / 0.561 GB, free: 1.191 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.162e-05/0.1366, allocations: 11.56 kB / 0.561 GB, free: 1.18 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1366, allocations: 0 / 0.561 GB, free: 1.18 MB / 414.1 MB Notification: Performance of Templates: time 0.003199/0.1398, allocations: 0.9597 MB / 0.562 GB, free: 220 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.348713682033122]