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.001309/0.001309, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001398/0.001398, allocations: 194 kB / 18.12 MB, free: 5.363 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.453/1.453, allocations: 222.9 MB / 241.8 MB, free: 13.84 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.2508/0.2508, allocations: 44.17 MB / 336.1 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001398, allocations: 58.28 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1251, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00208/0.1272, allocations: 0.5409 MB / 469 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.1296, allocations: 1.29 MB / 470.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.231e-05/0.1297, allocations: 0 / 470.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.042e-05/0.1297, allocations: 0 / 470.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.1299, allocations: 7.984 kB / 470.3 MB, free: 12.98 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.001265/0.1312, allocations: 197.7 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.778e-05/0.1312, allocations: 0 / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.1313, allocations: 8 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.327e-05/0.1313, allocations: 3.984 kB / 470.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.484e-05/0.1314, allocations: 4 kB / 470.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.1314, allocations: 0 / 470.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003184/0.1346, allocations: 0.6121 MB / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.003e-05/0.1347, allocations: 7.922 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.554e-05/0.1347, allocations: 7.984 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.1352, allocations: 175.6 kB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1352, allocations: 0 / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1352, allocations: 4 kB / 471.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.1352, allocations: 0 / 471.4 MB, free: 12.07 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.0006721/0.1359, allocations: 381.5 kB / 471.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.014e-05/0.136, allocations: 8.031 kB / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.686e-05/0.136, allocations: 4.938 kB / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.1363, allocations: 164.4 kB / 471.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.1363, allocations: 384 / 471.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.1363, allocations: 384 / 471.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.1364, allocations: 37.83 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.1365, allocations: 3.984 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.1365, allocations: 3.938 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1365, allocations: 0 / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.104e-05/0.1365, allocations: 3.938 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.1367, allocations: 153.6 kB / 472.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.551e-05/0.1368, allocations: 14.58 kB / 472.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.875e-05/0.1368, allocations: 12.95 kB / 472.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.814e-06/0.1368, allocations: 0 / 472.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.662e-05/0.1369, allocations: 64.19 kB / 472.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.1369, allocations: 0 / 472.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002027/0.1371, allocations: 71.25 kB / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.1371, allocations: 81.11 kB / 472.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.901e-05/0.1372, allocations: 97.84 kB / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1373, allocations: 25.7 kB / 472.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.1373, allocations: 84.14 kB / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.1373, allocations: 0 / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.1374, allocations: 9.719 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1375, allocations: 319.1 kB / 472.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.14e-05/0.1375, allocations: 4 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-06/0.1375, allocations: 0 / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.597e-05/0.1376, allocations: 68.19 kB / 472.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1376, allocations: 0 / 472.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.196e-05/0.1377, allocations: 67.34 kB / 473 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.92e-05/0.1377, allocations: 33.7 kB / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1378, allocations: 0 / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1378, allocations: 0 / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1378, allocations: 4.094 kB / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1378, allocations: 0 / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.205e-05/0.1378, allocations: 3.984 kB / 473 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.1378, allocations: 0 / 473 MB, free: 10.12 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 8.19e-05/0.1379, allocations: 143.5 kB / 473.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.1379, allocations: 3.938 kB / 473.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.245e-05/0.1379, allocations: 7.078 kB / 473.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.138, allocations: 4 kB / 473.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.138, allocations: 0 / 473.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.138, allocations: 4 kB / 473.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.944e-05/0.1381, allocations: 145.7 kB / 473.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1381, allocations: 3.938 kB / 473.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.994e-06/0.1381, allocations: 3.938 kB / 473.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1381, allocations: 4 kB / 473.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.1381, allocations: 0 / 473.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1381, allocations: 0 / 473.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1381, allocations: 3.938 kB / 473.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001076/0.1382, allocations: 94.83 kB / 473.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.334e-05/0.1383, allocations: 81.05 kB / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.1383, allocations: 4 kB / 473.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.097e-05/0.1383, allocations: 3.938 kB / 473.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.515e-05/0.1383, allocations: 4 kB / 473.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.1383, allocations: 0 / 473.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.418e-05/0.1384, allocations: 83.27 kB / 473.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1384, allocations: 0 / 473.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000329/0.1387, allocations: 59.98 kB / 473.7 MB, free: 9.367 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.0006901/0.1394, allocations: 350.1 kB / 474 MB, free: 9.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.915e-05/0.1395, allocations: 63.28 kB / 474.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1395, allocations: 0 / 474.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.478e-05/0.1396, allocations: 55.41 kB / 474.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.1397, allocations: 14.12 kB / 474.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.1399, allocations: 90.78 kB / 474.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.1402, allocations: 0.6692 MB / 474.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.55e-06/0.1402, allocations: 0 / 474.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.448e-05/0.1402, allocations: 15.38 kB / 474.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1402, allocations: 0 / 474.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of Templates: time 0.004599/0.1448, allocations: 1.572 MB / 476.5 MB, free: 6.551 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