Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 111.5 kB / 17.04 MB, free: 5.812 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.0012/0.0012, allocations: 195 kB / 17.98 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2213/0.2213, allocations: 43.52 MB / 314.7 MB, free: 480 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 67.55 kB / 384.2 MB, free: 56.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1128, allocations: 57.79 MB / 442 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001636/0.1145, allocations: 0.4927 MB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.1169, allocations: 1.97 MB / 444.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.438e-05/0.1169, allocations: 0 / 444.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.437e-05/0.1169, allocations: 0 / 444.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.92e-06/0.1169, allocations: 4 kB / 444.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.1185, allocations: 0.7081 MB / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.622e-05/0.1186, allocations: 0 / 445.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.736e-05/0.1186, allocations: 7.938 kB / 445.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.405e-05/0.1186, allocations: 0 / 445.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.592e-05/0.1187, allocations: 0 / 445.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.71e-06/0.1187, allocations: 0 / 445.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008023/0.1195, allocations: 0.6551 MB / 445.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-06/0.1195, allocations: 4 kB / 445.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.089e-05/0.1195, allocations: 4 kB / 445.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.12, allocations: 0.5653 MB / 446.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1201, allocations: 3.984 kB / 446.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1201, allocations: 0 / 446.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1201, allocations: 0 / 446.4 MB, free: 1.719 MB / 318.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.0003441/0.1204, allocations: 401.3 kB / 446.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1205, allocations: 11.89 kB / 446.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.1205, allocations: 0.9375 kB / 446.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.256e-05/0.1206, allocations: 168.4 kB / 446.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.1206, allocations: 8.312 kB / 447 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.1206, allocations: 4.375 kB / 447 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.691e-05/0.1207, allocations: 34.02 kB / 447 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.1207, allocations: 0 / 447 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.1207, allocations: 0 / 447 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1207, allocations: 0 / 447 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.813e-05/0.1207, allocations: 4 kB / 447 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001027/0.1208, allocations: 153.6 kB / 447.1 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.743e-05/0.1209, allocations: 34.55 kB / 447.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.165e-05/0.1209, allocations: 4.859 kB / 447.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.1209, allocations: 0 / 447.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.121, allocations: 60.2 kB / 447.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.121, allocations: 0 / 447.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001468/0.1211, allocations: 67.39 kB / 447.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.1211, allocations: 77.23 kB / 447.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.354e-05/0.1212, allocations: 93.86 kB / 447.5 MB, free: 416 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.1212, allocations: 29.7 kB / 447.5 MB, free: 380 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.078e-05/0.1212, allocations: 80.14 kB / 447.6 MB, free: 296 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.1212, allocations: 3.938 kB / 447.6 MB, free: 292 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.086e-05/0.1213, allocations: 9.719 kB / 447.6 MB, free: 276 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.418e-05/0.1213, allocations: 314.8 kB / 447.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-06/0.1214, allocations: 3.938 kB / 447.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.035e-06/0.1214, allocations: 4 kB / 447.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.1214, allocations: 68.31 kB / 448 MB, free: 15.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1214, allocations: 0 / 448 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.522e-05/0.1215, allocations: 63.39 kB / 448 MB, free: 15.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.1216, allocations: 34.89 kB / 448.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1216, allocations: 0 / 448.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.1216, allocations: 0 / 448.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-06/0.1216, allocations: 3.984 kB / 448.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1216, allocations: 0 / 448.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.666e-05/0.1216, allocations: 4 kB / 448.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-06/0.1216, allocations: 4.031 kB / 448.1 MB, free: 15.74 MB / 334.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.000103/0.1217, allocations: 148.5 kB / 448.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.1218, allocations: 7.938 kB / 448.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.065e-05/0.1218, allocations: 3.125 kB / 448.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1218, allocations: 0 / 448.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1218, allocations: 0 / 448.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1218, allocations: 0 / 448.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.1219, allocations: 145.7 kB / 448.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1219, allocations: 0 / 448.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-07/0.1219, allocations: 8 kB / 448.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1219, allocations: 3.938 kB / 448.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.122, allocations: 0 / 448.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.122, allocations: 3.938 kB / 448.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.122, allocations: 0 / 448.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.046e-05/0.1221, allocations: 90.83 kB / 448.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.751e-05/0.1221, allocations: 77.11 kB / 448.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.1222, allocations: 7.969 kB / 448.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-06/0.1222, allocations: 7.938 kB / 448.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.92e-05/0.1222, allocations: 4 kB / 448.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1222, allocations: 3.938 kB / 448.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.582e-05/0.1222, allocations: 75.28 kB / 448.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1222, allocations: 0 / 448.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000425/0.1227, allocations: 132 kB / 448.8 MB, free: 14.93 MB / 334.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.0006229/0.1233, allocations: 250.6 kB / 449 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.613e-05/0.1234, allocations: 63.41 kB / 449.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1234, allocations: 4 kB / 449.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.795e-05/0.1234, allocations: 51.41 kB / 449.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.1236, allocations: 4 kB / 449.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001679/0.1237, allocations: 80.97 kB / 449.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.124, allocations: 0.669 MB / 449.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.271e-06/0.124, allocations: 3.984 kB / 449.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.098e-05/0.124, allocations: 7.562 kB / 449.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of SimCode: time 1.482e-06/0.124, allocations: 4 kB / 449.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of Templates: time 0.007115/0.1311, allocations: 3.774 MB / 453.7 MB, free: 9.945 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestVectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches