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.001038/0.001038, allocations: 92.33 kB / 17.35 MB, free: 6.375 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.001199/0.001199, allocations: 176.6 kB / 18.25 MB, free: 5.523 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.643/1.643, allocations: 223.3 MB / 242.3 MB, free: 212 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.1969/0.1969, allocations: 44.26 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.0003752, allocations: 9.219 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006908/0.1412, allocations: 214.9 kB / 472.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.1432, allocations: 1.27 MB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.335e-05/0.1432, allocations: 0 / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.1433, allocations: 0 / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.1434, allocations: 0 / 473.7 MB, free: 11.87 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.0009771/0.1444, allocations: 194 kB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.076e-05/0.1445, allocations: 15.92 kB / 473.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.292e-05/0.1445, allocations: 0 / 473.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.26e-05/0.1445, allocations: 4 kB / 473.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.268e-05/0.1446, allocations: 11.92 kB / 473.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.775e-06/0.1446, allocations: 0 / 473.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002945/0.1476, allocations: 0.6076 MB / 474.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-06/0.1476, allocations: 0 / 474.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.579e-05/0.1477, allocations: 33.62 kB / 474.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002661/0.1479, allocations: 175.7 kB / 474.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1479, allocations: 0 / 474.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.1479, allocations: 3.938 kB / 474.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.148, allocations: 0 / 474.8 MB, free: 10.93 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.0003857/0.1483, allocations: 385.5 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1484, allocations: 12.03 kB / 475.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.1484, allocations: 4.938 kB / 475.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.1485, allocations: 164.4 kB / 475.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.1486, allocations: 384 / 475.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.1486, allocations: 384 / 475.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.116e-05/0.1487, allocations: 33.83 kB / 475.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.1487, allocations: 0 / 475.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.1487, allocations: 0 / 475.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.1487, allocations: 0 / 475.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.784e-05/0.1487, allocations: 3.984 kB / 475.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.1489, allocations: 153.7 kB / 475.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.844e-05/0.1489, allocations: 18.52 kB / 475.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.607e-05/0.1489, allocations: 8.953 kB / 475.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.1489, allocations: 0 / 475.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.149, allocations: 68.19 kB / 475.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.149, allocations: 0 / 475.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001917/0.1492, allocations: 67.34 kB / 475.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.1493, allocations: 85.05 kB / 475.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.899e-05/0.1493, allocations: 101.8 kB / 475.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.1494, allocations: 25.7 kB / 475.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.1495, allocations: 84.14 kB / 476 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.1495, allocations: 0 / 476 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-05/0.1496, allocations: 9.719 kB / 476 MB, free: 9.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1497, allocations: 311.1 kB / 476.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.1497, allocations: 4 kB / 476.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.843e-06/0.1497, allocations: 4 kB / 476.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.356e-05/0.1498, allocations: 68.2 kB / 476.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1498, allocations: 0 / 476.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.631e-05/0.1498, allocations: 71.27 kB / 476.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.1499, allocations: 29.7 kB / 476.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1499, allocations: 0 / 476.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1499, allocations: 0 / 476.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1499, allocations: 4.094 kB / 476.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1499, allocations: 4 kB / 476.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.465e-05/0.1499, allocations: 0 / 476.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.15, allocations: 0 / 476.4 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 9.467e-05/0.1501, allocations: 135.5 kB / 476.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-06/0.1501, allocations: 7.938 kB / 476.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.233e-05/0.1501, allocations: 7.078 kB / 476.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.1501, allocations: 0 / 476.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1501, allocations: 0 / 476.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1501, allocations: 4 kB / 476.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.1502, allocations: 153.7 kB / 476.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1502, allocations: 0 / 476.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.1504, allocations: 3.938 kB / 476.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1504, allocations: 0 / 476.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.1504, allocations: 0 / 476.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1504, allocations: 0 / 476.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1504, allocations: 4 kB / 476.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.782e-05/0.1505, allocations: 98.77 kB / 476.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.1506, allocations: 81.05 kB / 476.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.1506, allocations: 0 / 476.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.934e-05/0.1506, allocations: 4 kB / 476.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.1506, allocations: 3.938 kB / 476.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-06/0.1506, allocations: 4 kB / 476.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.014e-05/0.1507, allocations: 75.28 kB / 477 MB, free: 8.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1507, allocations: 0 / 477 MB, free: 8.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002835/0.1509, allocations: 63.98 kB / 477.1 MB, free: 8.23 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.0006406/0.1516, allocations: 344.3 kB / 477.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.1517, allocations: 67.39 kB / 477.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1517, allocations: 0 / 477.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.966e-05/0.1518, allocations: 55.41 kB / 477.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/0.1519, allocations: 10.38 kB / 477.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001866/0.1521, allocations: 94.73 kB / 477.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.1524, allocations: 0.677 MB / 478.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.1524, allocations: 0 / 478.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.818e-06/0.1524, allocations: 7.438 kB / 478.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1524, allocations: 0 / 478.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of Templates: time 0.004427/0.1568, allocations: 1.571 MB / 479.9 MB, free: 5.414 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