Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 99.22 kB / 17 MB, free: 6.418 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.001228/0.001227, allocations: 189.2 kB / 17.89 MB, free: 5.945 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.46/1.46, allocations: 223.3 MB / 241.9 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2365/0.2365, allocations: 44.25 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002733, allocations: 8 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.129, allocations: 61.92 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0005745/0.1296, allocations: 218.9 kB / 471.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1315, allocations: 1.189 MB / 473 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.097e-05/0.1316, allocations: 0 / 473 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.1316, allocations: 0 / 473 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.1318, allocations: 11.97 kB / 473 MB, free: 12.3 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006425/0.1324, allocations: 183.6 kB / 473.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.305e-05/0.1325, allocations: 11.92 kB / 473.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.1325, allocations: 11.98 kB / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.603e-05/0.1325, allocations: 0 / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.614e-05/0.1326, allocations: 4 kB / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.123e-06/0.1326, allocations: 0 / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008212/0.1334, allocations: 0.4915 MB / 473.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.781e-06/0.1334, allocations: 0 / 473.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.529e-05/0.1335, allocations: 29.7 kB / 473.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1337, allocations: 111.8 kB / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1337, allocations: 0 / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.1337, allocations: 0 / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.1337, allocations: 3.938 kB / 473.8 MB, free: 11.45 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.0003501/0.1341, allocations: 389.3 kB / 474.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.1341, allocations: 8.031 kB / 474.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.1342, allocations: 0 / 474.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.1343, allocations: 159.1 kB / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1343, allocations: 4 kB / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1343, allocations: 0 / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.305e-05/0.1344, allocations: 41.64 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1345, allocations: 3.938 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-06/0.1345, allocations: 7.938 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1345, allocations: 0 / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.791e-05/0.1345, allocations: 3.984 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.1346, allocations: 145.7 kB / 474.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.272e-05/0.1347, allocations: 18.56 kB / 474.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.574e-05/0.1347, allocations: 8.922 kB / 474.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.1347, allocations: 4 kB / 474.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.1348, allocations: 64.22 kB / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 6.412e-06/0.1348, allocations: 0 / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001926/0.135, allocations: 67.28 kB / 474.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.1351, allocations: 81.09 kB / 474.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.025e-05/0.1352, allocations: 97.86 kB / 474.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1352, allocations: 25.7 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.164e-05/0.1352, allocations: 80.14 kB / 475 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.1353, allocations: 8.156 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-06/0.1353, allocations: 4 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1354, allocations: 310.8 kB / 475.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.1354, allocations: 0 / 475.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/0.1354, allocations: 0 / 475.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.931e-05/0.1355, allocations: 33.69 kB / 475.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1355, allocations: 0 / 475.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.561e-05/0.1356, allocations: 67.34 kB / 475.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.1356, allocations: 29.7 kB / 475.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1357, allocations: 12.05 kB / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1357, allocations: 0 / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.1357, allocations: 0 / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.1357, allocations: 0 / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.726e-05/0.1357, allocations: 0 / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.1357, allocations: 3.984 kB / 475.5 MB, free: 9.547 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.579e-05/0.1358, allocations: 136.1 kB / 475.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.178e-06/0.1358, allocations: 0 / 475.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.546e-05/0.1359, allocations: 7.078 kB / 475.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.1359, allocations: 7.953 kB / 475.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1359, allocations: 4 kB / 475.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1359, allocations: 0 / 475.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.136, allocations: 153.7 kB / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.136, allocations: 0 / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.136, allocations: 0 / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.136, allocations: 0 / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.136, allocations: 8 kB / 475.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.1361, allocations: 0 / 475.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1361, allocations: 3.953 kB / 475.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.1362, allocations: 102.7 kB / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/0.1362, allocations: 77.11 kB / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.1363, allocations: 0 / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.318e-05/0.1363, allocations: 7.938 kB / 476 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/0.1363, allocations: 3.953 kB / 476 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1363, allocations: 0 / 476 MB, free: 8.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.339e-05/0.1364, allocations: 79.27 kB / 476.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 4.125 kB / 476.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003381/0.1367, allocations: 67.98 kB / 476.1 MB, free: 8.789 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007312/0.1375, allocations: 324.7 kB / 476.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.991e-05/0.1376, allocations: 63.34 kB / 476.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1376, allocations: 0 / 476.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.479e-05/0.1376, allocations: 55.41 kB / 476.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.1378, allocations: 4.125 kB / 476.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002115/0.138, allocations: 94.53 kB / 476.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.1383, allocations: 0.6731 MB / 477.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.081e-06/0.1383, allocations: 0 / 477.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.1383, allocations: 7.438 kB / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1383, allocations: 0 / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of Templates: time 0.004393/0.1427, allocations: 1.552 MB / 478.9 MB, free: 6.02 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches