Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001064/0.001064, allocations: 111.7 kB / 17.28 MB, free: 6.199 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.001121/0.001121, allocations: 185.3 kB / 18.2 MB, free: 5.281 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.545/1.545, allocations: 205.1 MB / 224 MB, free: 12.43 MB / 190.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.001152/0.001152, allocations: 55.92 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09745/0.09862, allocations: 46.62 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003466/0.1021, allocations: 2.3 MB / 329.1 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000385/0.1025, allocations: 191.3 kB / 329.3 MB, free: 2.285 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.632e-05/0.1026, allocations: 7.938 kB / 329.3 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.236e-05/0.1027, allocations: 23.83 kB / 329.3 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.1029, allocations: 51.55 kB / 329.3 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.1031, allocations: 39.97 kB / 329.4 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.1033, allocations: 243 kB / 329.6 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.1036, allocations: 106.6 kB / 329.7 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.854e-05/0.1037, allocations: 91.7 kB / 329.8 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.1038, allocations: 99.55 kB / 329.9 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.1038, allocations: 20 kB / 329.9 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.437e-05/0.1039, allocations: 24 kB / 330 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.17e-05/0.1039, allocations: 43.84 kB / 330 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.104, allocations: 119.4 kB / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.1043, allocations: 263.3 kB / 330.4 MB, free: 1.172 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1043, allocations: 3.938 kB / 330.4 MB, free: 1.168 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1043, allocations: 0 / 330.4 MB, free: 1.168 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.1043, allocations: 0 / 330.4 MB, free: 1.168 MB / 270.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.0007017/0.1051, allocations: 0.4993 MB / 330.9 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1051, allocations: 8.031 kB / 330.9 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.1052, allocations: 24.66 kB / 330.9 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.1054, allocations: 220 kB / 331.1 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.1054, allocations: 16.94 kB / 331.1 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.645e-05/0.1055, allocations: 28.36 kB / 331.2 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003587/0.1058, allocations: 232.8 kB / 331.4 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.1059, allocations: 4.172 kB / 331.4 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.1059, allocations: 11.94 kB / 331.4 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1059, allocations: 4 kB / 331.4 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.1061, allocations: 135.9 kB / 331.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.1072, allocations: 0.8593 MB / 332.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.1074, allocations: 159.7 kB / 332.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.618e-05/0.1075, allocations: 62.56 kB / 332.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.1075, allocations: 4.312 kB / 332.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1076, allocations: 42.5 kB / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.163e-06/0.1076, allocations: 0 / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003485/0.1079, allocations: 165.3 kB / 332.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.108, allocations: 106.8 kB / 332.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1082, allocations: 206.6 kB / 333.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.1082, allocations: 25.7 kB / 333.2 MB, free: 14.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.547e-05/0.1083, allocations: 163.8 kB / 333.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.318e-05/0.1084, allocations: 59.11 kB / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.449e-05/0.1084, allocations: 45.98 kB / 333.4 MB, free: 13.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1085, allocations: 334.8 kB / 333.7 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.148e-05/0.1086, allocations: 44.55 kB / 333.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.1088, allocations: 162.7 kB / 334 MB, free: 13.26 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.109, allocations: 226.2 kB / 334.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.109, allocations: 0 / 334.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003207/0.1093, allocations: 245 kB / 334.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1094, allocations: 15.88 kB / 334.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.1094, allocations: 11.94 kB / 334.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.1094, allocations: 7.984 kB / 334.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.1096, allocations: 55.92 kB / 334.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.1096, allocations: 4 kB / 334.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.1097, allocations: 28.19 kB / 334.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.1098, allocations: 16 kB / 334.5 MB, free: 12.61 MB / 286.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.0001125/0.1099, allocations: 145.7 kB / 334.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.308e-05/0.11, allocations: 23.69 kB / 334.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.21e-05/0.11, allocations: 21.41 kB / 334.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.11, allocations: 4.188 kB / 334.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.11, allocations: 0 / 334.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.11, allocations: 11.91 kB / 334.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004714/0.1105, allocations: 420.8 kB / 335.2 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1105, allocations: 4 kB / 335.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.1107, allocations: 35.98 kB / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1107, allocations: 4 kB / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.1108, allocations: 4 kB / 335.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.1108, allocations: 3.984 kB / 335.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1108, allocations: 3.938 kB / 335.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.1111, allocations: 377.1 kB / 335.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.1112, allocations: 88.92 kB / 335.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.1112, allocations: 8 kB / 335.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.1114, allocations: 4 kB / 335.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.1114, allocations: 23.91 kB / 335.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.1114, allocations: 4 kB / 335.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.1115, allocations: 144.3 kB / 335.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1115, allocations: 0 / 335.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.1119, allocations: 55.84 kB / 335.9 MB, free: 11.13 MB / 286.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.0001099/0.112, allocations: 95.25 kB / 336 MB, free: 11.03 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002696/0.1123, allocations: 159.1 kB / 336.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1123, allocations: 0 / 336.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.987e-05/0.1123, allocations: 55.91 kB / 336.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.1128, allocations: 31.98 kB / 336.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1139, allocations: 0.6785 MB / 336.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.1143, allocations: 0.7359 MB / 337.7 MB, free: 9.309 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.738e-05/0.1143, allocations: 25.89 kB / 337.7 MB, free: 9.281 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.941e-05/0.1144, allocations: 15.44 kB / 337.7 MB, free: 9.266 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1144, allocations: 0 / 337.7 MB, free: 9.266 MB / 286.1 MB Notification: Performance of Templates: time 0.004031/0.1184, allocations: 1.518 MB / 339.2 MB, free: 7.75 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches