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.001583/0.001583, allocations: 115 kB / 17.69 MB, free: 5.309 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.001809/0.001809, allocations: 188 kB / 18.63 MB, free: 4.379 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.338/1.338, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009743/0.0009747, allocations: 51.42 kB / 302.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09819, allocations: 49.45 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003327/0.1016, allocations: 2.243 MB / 353.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004589/0.102, allocations: 203.3 kB / 353.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.47e-05/0.1022, allocations: 7.938 kB / 354 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.369e-05/0.1023, allocations: 35.64 kB / 354 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001494/0.1024, allocations: 63.42 kB / 354 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001661/0.1026, allocations: 43.94 kB / 354.1 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002209/0.1028, allocations: 243 kB / 354.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.103, allocations: 106.6 kB / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.661e-05/0.1032, allocations: 87.72 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.1033, allocations: 103.5 kB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.1033, allocations: 20 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.247e-05/0.1034, allocations: 20 kB / 354.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.336e-05/0.1034, allocations: 47.84 kB / 354.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.1035, allocations: 111.5 kB / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.1038, allocations: 271 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1038, allocations: 0 / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1039, allocations: 0 / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1039, allocations: 0 / 355.1 MB, free: 120 kB / 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.0007088/0.1046, allocations: 0.4954 MB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1046, allocations: 11.89 kB / 355.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.423e-05/0.1047, allocations: 28.64 kB / 355.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.1049, allocations: 224 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.1049, allocations: 16.94 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.105, allocations: 28.31 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003471/0.1053, allocations: 232.8 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.1054, allocations: 8.031 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.1054, allocations: 11.94 kB / 356.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1054, allocations: 8 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.1056, allocations: 135.2 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1068, allocations: 0.8517 MB / 357.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.107, allocations: 163.7 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.659e-05/0.1071, allocations: 58.56 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.1071, allocations: 4 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1072, allocations: 46.48 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.1072, allocations: 0 / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003677/0.1075, allocations: 173.8 kB / 357.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.1076, allocations: 106.8 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.1078, allocations: 186.6 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1078, allocations: 29.7 kB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.166e-05/0.1079, allocations: 159.7 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/0.108, allocations: 63.09 kB / 358.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.108, allocations: 57.89 kB / 358.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1082, allocations: 326.8 kB / 358.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.41e-05/0.1082, allocations: 52.53 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.1084, allocations: 155.6 kB / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.1086, allocations: 226.1 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1086, allocations: 0 / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003346/0.109, allocations: 241.5 kB / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.109, allocations: 7.938 kB / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.109, allocations: 8 kB / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.109, allocations: 4 kB / 359.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.1093, allocations: 63.91 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.1093, allocations: 8 kB / 359.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.1094, allocations: 27.69 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.1094, allocations: 8 kB / 359.2 MB, free: 11.57 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.0001031/0.1095, allocations: 145.7 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.257e-05/0.1096, allocations: 23.75 kB / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.644e-05/0.1097, allocations: 29.39 kB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1097, allocations: 3.938 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1097, allocations: 7.938 kB / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1097, allocations: 0 / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005077/0.1102, allocations: 424.9 kB / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1102, allocations: 0 / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.1104, allocations: 36.08 kB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1104, allocations: 4 kB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1105, allocations: 4 kB / 359.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1105, allocations: 11.88 kB / 359.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1105, allocations: 0 / 359.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003639/0.1108, allocations: 384 kB / 360.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.1109, allocations: 100.8 kB / 360.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.111, allocations: 8 kB / 360.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.1111, allocations: 0 / 360.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.674e-05/0.1111, allocations: 23.86 kB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.1111, allocations: 4 kB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001125/0.1113, allocations: 144.3 kB / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1113, allocations: 0 / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.1116, allocations: 51.94 kB / 360.6 MB, free: 10.08 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.0001274/0.1118, allocations: 99.78 kB / 360.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002646/0.112, allocations: 147.6 kB / 360.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.112, allocations: 0.875 kB / 360.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.363e-05/0.1121, allocations: 48.05 kB / 360.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.1126, allocations: 36.05 kB / 360.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009625/0.1136, allocations: 0.588 MB / 361.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.114, allocations: 0.7397 MB / 362.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.813e-05/0.114, allocations: 21.94 kB / 362.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.1141, allocations: 19.44 kB / 362.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1141, allocations: 0 / 362.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of Templates: time 0.003971/0.1181, allocations: 1.524 MB / 363.8 MB, free: 6.801 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 -s cvode -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