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.001322/0.001322, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001334/0.001335, allocations: 187 kB / 19.34 MB, free: 3.641 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.371/1.371, allocations: 222.9 MB / 243 MB, free: 15.11 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.2155/0.2155, allocations: 44.18 MB / 337.4 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 71.88 kB / 409.9 MB, free: 26.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1287, allocations: 60.82 MB / 470.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002043/0.1308, allocations: 486.8 kB / 471.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.1329, allocations: 1.275 MB / 472.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.639e-05/0.1329, allocations: 0 / 472.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.1329, allocations: 0 / 472.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.1331, allocations: 7.938 kB / 472.5 MB, free: 11.94 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.001109/0.1342, allocations: 242.1 kB / 472.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.569e-05/0.1343, allocations: 8 kB / 472.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.768e-05/0.1343, allocations: 0 / 472.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.893e-05/0.1344, allocations: 7.984 kB / 472.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.305e-05/0.1345, allocations: 15.92 kB / 472.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.508e-06/0.1345, allocations: 0 / 472.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003138/0.1376, allocations: 0.6752 MB / 473.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.1376, allocations: 3.984 kB / 473.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.1377, allocations: 4 kB / 473.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.138, allocations: 175.7 kB / 473.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.138, allocations: 0 / 473.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.138, allocations: 0 / 473.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1381, allocations: 3.938 kB / 473.6 MB, free: 10.94 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.0004233/0.1385, allocations: 385.2 kB / 474 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1385, allocations: 8.031 kB / 474 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.851e-05/0.1386, allocations: 4.922 kB / 474 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.1387, allocations: 160.4 kB / 474.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1387, allocations: 16.3 kB / 474.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-06/0.1387, allocations: 384 / 474.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.944e-05/0.1388, allocations: 29.83 kB / 474.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.1388, allocations: 4 kB / 474.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.1388, allocations: 0 / 474.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.1389, allocations: 0 / 474.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.718e-05/0.1389, allocations: 0 / 474.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.139, allocations: 153.7 kB / 474.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.562e-05/0.1391, allocations: 22.52 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.465e-05/0.1391, allocations: 4.859 kB / 474.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.965e-06/0.1391, allocations: 8 kB / 474.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.1392, allocations: 64.2 kB / 474.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/0.1392, allocations: 0 / 474.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002091/0.1394, allocations: 79.22 kB / 474.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.1395, allocations: 77.11 kB / 474.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.577e-05/0.1395, allocations: 97.98 kB / 474.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.1396, allocations: 25.7 kB / 474.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.285e-05/0.1396, allocations: 84.12 kB / 474.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.1396, allocations: 4 kB / 474.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.1397, allocations: 13.72 kB / 474.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1398, allocations: 310.8 kB / 475.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.1398, allocations: 4 kB / 475.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-06/0.1398, allocations: 4.125 kB / 475.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.76e-05/0.1399, allocations: 60.27 kB / 475.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1399, allocations: 0 / 475.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.134e-05/0.14, allocations: 75.27 kB / 475.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.14, allocations: 29.7 kB / 475.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.14, allocations: 4 kB / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1401, allocations: 0 / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1401, allocations: 0 / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.1401, allocations: 0 / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.1401, allocations: 4.094 kB / 475.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1401, allocations: 0 / 475.3 MB, free: 8.973 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 0.0001047/0.1402, allocations: 139.5 kB / 475.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.1402, allocations: 3.938 kB / 475.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.895e-05/0.1403, allocations: 7.078 kB / 475.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1403, allocations: 3.938 kB / 475.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1403, allocations: 4 kB / 475.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1403, allocations: 0 / 475.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.1404, allocations: 149.7 kB / 475.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1404, allocations: 0 / 475.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.074e-06/0.1404, allocations: 7.938 kB / 475.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1404, allocations: 0 / 475.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.1404, allocations: 4 kB / 475.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1404, allocations: 0 / 475.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1404, allocations: 0 / 475.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.1406, allocations: 98.8 kB / 475.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.1406, allocations: 81.05 kB / 475.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.1406, allocations: 4.031 kB / 475.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.1407, allocations: 4 kB / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.1407, allocations: 0 / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.1407, allocations: 0 / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.942e-05/0.1407, allocations: 83.22 kB / 475.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1407, allocations: 0 / 475.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1411, allocations: 63.98 kB / 475.9 MB, free: 8.223 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.0006756/0.1417, allocations: 346.9 kB / 476.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.1419, allocations: 63.39 kB / 476.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1419, allocations: 0 / 476.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.394e-05/0.1419, allocations: 55.41 kB / 476.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.1421, allocations: 7.938 kB / 476.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002182/0.1423, allocations: 92.78 kB / 476.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.1425, allocations: 0.6729 MB / 477.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.04e-06/0.1426, allocations: 8.125 kB / 477.2 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.294e-05/0.1426, allocations: 7.438 kB / 477.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1426, allocations: 0 / 477.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of Templates: time 0.004918/0.1475, allocations: 1.581 MB / 478.7 MB, free: 5.398 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches