Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.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.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001497, allocations: 104.1 kB / 17.32 MB, free: 5.984 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.001866/0.001866, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.391/1.391, allocations: 222.9 MB / 241.9 MB, free: 13.71 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.2558/0.2558, allocations: 44.17 MB / 336.2 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 59.22 kB / 407.9 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1207, allocations: 60.84 MB / 468.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001666/0.1224, allocations: 0.541 MB / 469.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1238, allocations: 0.7629 MB / 470 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.372e-05/0.1238, allocations: 0 / 470 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.499e-05/0.1239, allocations: 0 / 470 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.1239, allocations: 0 / 470 MB, free: 13.4 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:612:3-661:14:writable] Warning: Pure function ‘ModelicaTest.Math.Vectors‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.1254, allocations: 0.5452 MB / 470.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.416e-05/0.1255, allocations: 4 kB / 470.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.187e-05/0.1255, allocations: 3.984 kB / 470.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.352e-05/0.1255, allocations: 0 / 470.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.72e-05/0.1256, allocations: 7.984 kB / 470.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-06/0.1256, allocations: 4 kB / 470.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005823/0.1262, allocations: 371.3 kB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.633e-06/0.1262, allocations: 0 / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.1262, allocations: 0 / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004118/0.1266, allocations: 331.3 kB / 471.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1266, allocations: 0 / 471.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1266, allocations: 0 / 471.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1266, allocations: 3.938 kB / 471.3 MB, free: 12.14 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.0003395/0.127, allocations: 381.3 kB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.127, allocations: 16.03 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.7e-05/0.1271, allocations: 4.922 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.704e-05/0.1272, allocations: 160.4 kB / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.313e-06/0.1272, allocations: 384 / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.1272, allocations: 4.312 kB / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.744e-05/0.1273, allocations: 34.27 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.1273, allocations: 192 / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.1273, allocations: 3.938 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1273, allocations: 0 / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.802e-05/0.1273, allocations: 8 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.1274, allocations: 149.7 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.385e-05/0.1275, allocations: 14.58 kB / 472 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.051e-05/0.1275, allocations: 8.797 kB / 472 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.683e-06/0.1275, allocations: 4.094 kB / 472 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.1276, allocations: 60.27 kB / 472.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1276, allocations: 0 / 472.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001393/0.1277, allocations: 71.33 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.1278, allocations: 77.11 kB / 472.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.347e-05/0.1278, allocations: 89.86 kB / 472.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.1278, allocations: 25.7 kB / 472.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.837e-05/0.1279, allocations: 80.14 kB / 472.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.1279, allocations: 0 / 472.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.1279, allocations: 17.72 kB / 472.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.128, allocations: 311 kB / 472.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.128, allocations: 15.81 kB / 472.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.164e-06/0.1281, allocations: 7.984 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.885e-05/0.1281, allocations: 56.27 kB / 472.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1281, allocations: 4 kB / 472.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.928e-05/0.1282, allocations: 59.41 kB / 472.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.1282, allocations: 33.7 kB / 472.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.1282, allocations: 0 / 472.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.1282, allocations: 7.922 kB / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1282, allocations: 4.094 kB / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1283, allocations: 3.984 kB / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.396e-05/0.1283, allocations: 0 / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.1283, allocations: 0 / 472.9 MB, free: 10.19 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.566e-05/0.1284, allocations: 139.5 kB / 473.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1284, allocations: 0 / 473.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.1284, allocations: 7.062 kB / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-06/0.1284, allocations: 0 / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1284, allocations: 0 / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1284, allocations: 8 kB / 473.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.413e-05/0.1285, allocations: 149.7 kB / 473.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1285, allocations: 0 / 473.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1285, allocations: 0 / 473.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1285, allocations: 0 / 473.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.1286, allocations: 3.938 kB / 473.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1286, allocations: 4 kB / 473.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1286, allocations: 0 / 473.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.973e-05/0.1287, allocations: 94.83 kB / 473.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/0.1287, allocations: 85.02 kB / 473.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.1287, allocations: 7.922 kB / 473.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-06/0.1287, allocations: 0 / 473.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.27e-05/0.1288, allocations: 0 / 473.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.1288, allocations: 4 kB / 473.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.794e-05/0.1288, allocations: 83.2 kB / 473.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1288, allocations: 4 kB / 473.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1292, allocations: 79.98 kB / 473.6 MB, free: 9.426 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.0005051/0.1297, allocations: 225 kB / 473.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.672e-05/0.1298, allocations: 55.41 kB / 473.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1298, allocations: 0 / 473.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.324e-05/0.1298, allocations: 59.41 kB / 473.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.13, allocations: 7.516 kB / 473.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.1301, allocations: 76.92 kB / 474 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.1304, allocations: 0.6769 MB / 474.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.791e-06/0.1304, allocations: 0 / 474.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.12e-05/0.1304, allocations: 7.438 kB / 474.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1304, allocations: 0 / 474.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of Templates: time 0.004493/0.1349, allocations: 1.827 MB / 476.5 MB, free: 6.426 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches