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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001087, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 242.2 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2055/0.2055, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001168, allocations: 59.42 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.125, allocations: 60.83 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001641/0.1267, allocations: 486.7 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005464/0.1273, allocations: 249.8 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.083e-05/0.1273, allocations: 0 / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.247e-05/0.1273, allocations: 0 / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.248e-06/0.1273, allocations: 0 / 470 MB, free: 13.66 MB / 350.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.0002803/0.1276, allocations: 59.75 kB / 470 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.702e-05/0.1277, allocations: 4 kB / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.8e-05/0.1277, allocations: 7.984 kB / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.401e-05/0.1277, allocations: 0 / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.268e-05/0.1277, allocations: 3.938 kB / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.175e-06/0.1278, allocations: 0 / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.1279, allocations: 55.95 kB / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.556e-06/0.1279, allocations: 4 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.1279, allocations: 11.98 kB / 470.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.1281, allocations: 51.94 kB / 470.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1281, allocations: 0 / 470.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1281, allocations: 0 / 470.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1281, allocations: 0 / 470.2 MB, free: 13.46 MB / 350.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.0003069/0.1284, allocations: 360.1 kB / 470.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1285, allocations: 12.03 kB / 470.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.1285, allocations: 4.875 kB / 470.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.514e-05/0.1286, allocations: 160.4 kB / 470.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1286, allocations: 4.375 kB / 470.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-06/0.1286, allocations: 384 / 470.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.815e-05/0.1287, allocations: 30.27 kB / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1287, allocations: 192 / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.1288, allocations: 7.922 kB / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.1288, allocations: 0 / 470.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.1288, allocations: 7.938 kB / 470.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.1289, allocations: 145.7 kB / 470.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.982e-05/0.129, allocations: 18.58 kB / 470.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.129, allocations: 8.953 kB / 470.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.529e-06/0.129, allocations: 0 / 470.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/0.1291, allocations: 56.27 kB / 471 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1291, allocations: 0 / 471 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.1292, allocations: 75.27 kB / 471 MB, free: 12.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.1293, allocations: 77.11 kB / 471.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.255e-05/0.1293, allocations: 93.98 kB / 471.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.1294, allocations: 25.7 kB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.588e-05/0.1294, allocations: 84.14 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.1294, allocations: 0 / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.1294, allocations: 13.7 kB / 471.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.1296, allocations: 310.8 kB / 471.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.104e-05/0.1296, allocations: 4 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.1296, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.567e-05/0.1296, allocations: 68.33 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1296, allocations: 3.938 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.845e-05/0.1297, allocations: 63.39 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.1297, allocations: 33.14 kB / 471.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1298, allocations: 0 / 471.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1298, allocations: 3.938 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1298, allocations: 0 / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.1298, allocations: 0 / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.563e-05/0.1298, allocations: 7.938 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.1298, allocations: 4.031 kB / 471.8 MB, free: 11.54 MB / 350.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 7.742e-05/0.1299, allocations: 135.5 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.1299, allocations: 4 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.417e-05/0.1299, allocations: 15 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.1299, allocations: 0 / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1299, allocations: 0 / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1299, allocations: 4 kB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.302e-05/0.13, allocations: 141.7 kB / 472.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.13, allocations: 3.938 kB / 472.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.783e-06/0.1301, allocations: 4 kB / 472.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.1301, allocations: 4 kB / 472.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1301, allocations: 3.938 kB / 472.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1301, allocations: 3.984 kB / 472.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.1301, allocations: 3.938 kB / 472.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.549e-05/0.1302, allocations: 90.83 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.1302, allocations: 77.11 kB / 472.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.1302, allocations: 7.922 kB / 472.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.1302, allocations: 4.031 kB / 472.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.162e-05/0.1303, allocations: 7.984 kB / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1303, allocations: 0 / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.189e-05/0.1303, allocations: 75.28 kB / 472.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1303, allocations: 0 / 472.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002066/0.1305, allocations: 24 kB / 472.4 MB, free: 10.84 MB / 350.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.000466/0.131, allocations: 265.9 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.119e-05/0.1311, allocations: 67.33 kB / 472.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1311, allocations: 8 kB / 472.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.8e-05/0.1311, allocations: 55.41 kB / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.1313, allocations: 7.938 kB / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001668/0.1315, allocations: 92.83 kB / 472.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1317, allocations: 0.669 MB / 473.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.681e-06/0.1317, allocations: 0 / 473.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.888e-06/0.1317, allocations: 7.438 kB / 473.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1317, allocations: 0 / 473.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of Templates: time 0.002969/0.1347, allocations: 0.8009 MB / 474.4 MB, free: 8.859 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (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) 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) Reference file matches