Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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) 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(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 115.7 kB / 17.29 MB, free: 6.207 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: 197.3 kB / 18.21 MB, free: 5.281 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.425/1.425, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 51.48 kB / 300.8 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1067, allocations: 49.45 MB / 350.2 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.00415/0.1109, allocations: 2.308 MB / 352.5 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006762/0.1116, allocations: 195.3 kB / 352.7 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002479/0.1118, allocations: 4 kB / 352.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.112, allocations: 23.83 kB / 352.8 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.1123, allocations: 51.55 kB / 352.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.1126, allocations: 43.97 kB / 352.8 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003212/0.1129, allocations: 238.9 kB / 353.1 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003008/0.1132, allocations: 106.6 kB / 353.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.1134, allocations: 91.66 kB / 353.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.1136, allocations: 107.5 kB / 353.4 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.1137, allocations: 24 kB / 353.4 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.932e-05/0.1137, allocations: 20 kB / 353.4 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.26e-05/0.1138, allocations: 43.84 kB / 353.5 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.1139, allocations: 115.5 kB / 353.6 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.1142, allocations: 195.7 kB / 353.8 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.1143, allocations: 0 / 353.8 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1143, allocations: 0 / 353.8 MB, free: 1.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1143, allocations: 0 / 353.8 MB, free: 1.176 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009523/0.1152, allocations: 0.5071 MB / 354.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.1153, allocations: 12.03 kB / 354.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.087e-05/0.1154, allocations: 24.66 kB / 354.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.1157, allocations: 216 kB / 354.5 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.1157, allocations: 20.94 kB / 354.5 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.1158, allocations: 24.38 kB / 354.6 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.1162, allocations: 228.9 kB / 354.8 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.1163, allocations: 4.094 kB / 354.8 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.1163, allocations: 15.92 kB / 354.8 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.1163, allocations: 15.92 kB / 354.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.1166, allocations: 127.9 kB / 355 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.1178, allocations: 0.8633 MB / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.118, allocations: 155.7 kB / 356 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.158e-05/0.1181, allocations: 62.56 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.1182, allocations: 4 kB / 356 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.1182, allocations: 42.44 kB / 356.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.513e-06/0.1182, allocations: 0 / 356.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003651/0.1186, allocations: 170.2 kB / 356.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.1186, allocations: 106.8 kB / 356.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.1188, allocations: 190.6 kB / 356.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.1189, allocations: 37.7 kB / 356.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.119, allocations: 159.7 kB / 356.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.119, allocations: 71.03 kB / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.548e-05/0.1191, allocations: 53.89 kB / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1192, allocations: 330.8 kB / 357.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.834e-05/0.1193, allocations: 44.55 kB / 357.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.1195, allocations: 163.6 kB / 357.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.1197, allocations: 217.5 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1197, allocations: 4 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000336/0.1201, allocations: 245.2 kB / 357.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1201, allocations: 11.94 kB / 357.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1201, allocations: 4 kB / 357.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.1201, allocations: 4 kB / 357.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.1204, allocations: 59.91 kB / 357.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.1204, allocations: 8 kB / 357.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1205, allocations: 31.69 kB / 357.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.1205, allocations: 12.31 kB / 358 MB, free: 12.6 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * 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.0001123/0.1207, allocations: 149.6 kB / 358.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.066e-05/0.1207, allocations: 27.73 kB / 358.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.1208, allocations: 17.41 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.1208, allocations: 4 kB / 358.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1208, allocations: 0 / 358.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.1208, allocations: 4 kB / 358.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004942/0.1213, allocations: 425 kB / 358.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1213, allocations: 0 / 358.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.1215, allocations: 39.92 kB / 358.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.1215, allocations: 3.984 kB / 358.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.1216, allocations: 8 kB / 358.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1216, allocations: 0 / 358.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1216, allocations: 4 kB / 358.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003811/0.122, allocations: 381 kB / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.393e-05/0.122, allocations: 104.8 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.1221, allocations: 4 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.1222, allocations: 4 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.567e-05/0.1222, allocations: 11.97 kB / 359.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.1223, allocations: 16 kB / 359.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.1224, allocations: 140.3 kB / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1224, allocations: 0 / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.1227, allocations: 55.88 kB / 359.3 MB, free: 11.12 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.0001167/0.1229, allocations: 103.2 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002602/0.1231, allocations: 148.8 kB / 359.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1231, allocations: 0 / 359.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.352e-05/0.1232, allocations: 56.16 kB / 359.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.1237, allocations: 35.25 kB / 359.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.1248, allocations: 0.6909 MB / 360.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.1251, allocations: 0.7436 MB / 361.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.313e-05/0.1252, allocations: 19.44 kB / 361.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1252, allocations: 0 / 361.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of Templates: time 0.003819/0.129, allocations: 2.282 MB / 363.4 MB, free: 6.973 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches