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.001579/0.001579, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001193/0.001193, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.382/1.382, allocations: 222.9 MB / 243 MB, free: 15.07 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.2181/0.2181, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 70.78 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 60.82 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.00174/0.11, allocations: 482.8 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.1113, allocations: 0.7821 MB / 471.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.157e-05/0.1113, allocations: 4 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.174e-05/0.1114, allocations: 0 / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.837e-06/0.1114, allocations: 0 / 472 MB, free: 12.38 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.001411/0.1128, allocations: 0.5792 MB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.898e-05/0.1128, allocations: 4 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.1129, allocations: 0 / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.279e-05/0.1129, allocations: 0 / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.594e-05/0.1129, allocations: 3.984 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.179e-06/0.1129, allocations: 4 kB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005824/0.1135, allocations: 383.2 kB / 472.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.991e-06/0.1135, allocations: 0 / 472.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.544e-05/0.1136, allocations: 0 / 472.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004082/0.114, allocations: 339.3 kB / 473.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.114, allocations: 0 / 473.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.114, allocations: 4 kB / 473.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.114, allocations: 0 / 473.3 MB, free: 11.08 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.0003613/0.1144, allocations: 384.1 kB / 473.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.1144, allocations: 12.03 kB / 473.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.682e-05/0.1144, allocations: 0.9375 kB / 473.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.98e-05/0.1145, allocations: 164.4 kB / 473.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.1146, allocations: 384 / 473.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.1146, allocations: 4.375 kB / 473.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.825e-05/0.1146, allocations: 34.27 kB / 473.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.171e-06/0.1147, allocations: 192 / 473.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.1147, allocations: 3.938 kB / 473.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-06/0.1147, allocations: 0 / 473.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.893e-05/0.1147, allocations: 7.938 kB / 473.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.1148, allocations: 145.7 kB / 474 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.29e-05/0.1149, allocations: 14.58 kB / 474 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.1149, allocations: 16.94 kB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.1149, allocations: 4 kB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/0.115, allocations: 60.2 kB / 474.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.115, allocations: 0 / 474.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001564/0.1151, allocations: 75.25 kB / 474.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.1152, allocations: 77.11 kB / 474.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.57e-05/0.1152, allocations: 89.86 kB / 474.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.1152, allocations: 25.7 kB / 474.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.234e-05/0.1153, allocations: 88.27 kB / 474.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.1153, allocations: 4 kB / 474.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.1153, allocations: 9.719 kB / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.648e-05/0.1154, allocations: 310.8 kB / 474.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.006e-06/0.1155, allocations: 8 kB / 474.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.979e-06/0.1155, allocations: 0 / 474.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.572e-05/0.1155, allocations: 64.25 kB / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1155, allocations: 4.062 kB / 474.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.278e-05/0.1156, allocations: 63.34 kB / 474.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.1156, allocations: 33.7 kB / 474.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1156, allocations: 0 / 474.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1157, allocations: 3.938 kB / 474.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-06/0.1157, allocations: 7.922 kB / 474.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1157, allocations: 0 / 474.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.1157, allocations: 4 kB / 474.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.1157, allocations: 0 / 474.9 MB, free: 9.125 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.286e-05/0.1158, allocations: 135.6 kB / 475.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.1158, allocations: 4 kB / 475.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.1158, allocations: 7.062 kB / 475.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1158, allocations: 0 / 475.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1158, allocations: 0 / 475.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1158, allocations: 0 / 475.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.149e-05/0.1159, allocations: 149.7 kB / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1159, allocations: 0 / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.853e-06/0.1159, allocations: 4 kB / 475.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.1159, allocations: 0 / 475.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.116, allocations: 7.938 kB / 475.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.116, allocations: 0 / 475.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.116, allocations: 0 / 475.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.202e-05/0.1161, allocations: 94.77 kB / 475.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.1161, allocations: 81.02 kB / 475.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.1161, allocations: 3.938 kB / 475.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-06/0.1161, allocations: 0 / 475.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.251e-05/0.1161, allocations: 4 kB / 475.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.1162, allocations: 4.031 kB / 475.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.255e-05/0.1162, allocations: 75.28 kB / 475.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1162, allocations: 3.938 kB / 475.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.1165, allocations: 75.98 kB / 475.6 MB, free: 8.379 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.0004281/0.117, allocations: 226.7 kB / 475.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.79e-05/0.117, allocations: 63.41 kB / 475.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1171, allocations: 8 kB / 475.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.612e-05/0.1171, allocations: 51.41 kB / 475.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.1172, allocations: 4 kB / 475.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001376/0.1174, allocations: 76.92 kB / 476 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.1176, allocations: 0.669 MB / 476.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.819e-06/0.1176, allocations: 0 / 476.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-06/0.1176, allocations: 7.438 kB / 476.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1176, allocations: 0 / 476.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of Templates: time 0.004191/0.1218, allocations: 1.834 MB / 478.5 MB, free: 5.367 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches