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.001524/0.001524, allocations: 113.4 kB / 17.06 MB, free: 5.992 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.001726/0.001727, allocations: 200 kB / 18.01 MB, free: 5.062 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009042/0.0009043, allocations: 47.94 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2564, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003306/0.2597, allocations: 2.247 MB / 403 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004698/0.2602, allocations: 199.2 kB / 403.2 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.2603, allocations: 4 kB / 403.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.35e-05/0.2604, allocations: 43.64 kB / 403.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.2606, allocations: 59.42 kB / 403.3 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.2608, allocations: 51.92 kB / 403.3 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.2611, allocations: 231 kB / 403.5 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.2613, allocations: 118.6 kB / 403.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.2614, allocations: 91.64 kB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.2615, allocations: 95.56 kB / 403.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.2616, allocations: 28 kB / 403.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.753e-05/0.2616, allocations: 20 kB / 403.9 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.332e-05/0.2617, allocations: 51.83 kB / 403.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.987e-05/0.2618, allocations: 115.5 kB / 404 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.2621, allocations: 255 kB / 404.3 MB, free: 5.309 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2621, allocations: 0 / 404.3 MB, free: 5.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2621, allocations: 0 / 404.3 MB, free: 5.309 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.071e-05/0.2621, allocations: 3.938 kB / 404.3 MB, free: 5.305 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006848/0.2628, allocations: 0.5107 MB / 404.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2628, allocations: 8.031 kB / 404.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.2629, allocations: 28.8 kB / 404.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.2631, allocations: 227.5 kB / 405.1 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.2631, allocations: 16.94 kB / 405.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.427e-05/0.2632, allocations: 24.38 kB / 405.1 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.2636, allocations: 232.9 kB / 405.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.2636, allocations: 4.125 kB / 405.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.2636, allocations: 15.94 kB / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.2636, allocations: 4 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002323/0.2639, allocations: 135.9 kB / 405.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.265, allocations: 0.8519 MB / 406.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.2652, allocations: 155.7 kB / 406.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.646e-05/0.2653, allocations: 66.55 kB / 406.6 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.2653, allocations: 3.938 kB / 406.6 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.2653, allocations: 46.44 kB / 406.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.2653, allocations: 0 / 406.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003518/0.2657, allocations: 177.9 kB / 406.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.2658, allocations: 102.8 kB / 406.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.266, allocations: 194.7 kB / 407.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.266, allocations: 33.7 kB / 407.1 MB, free: 2.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.736e-05/0.2661, allocations: 156.2 kB / 407.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.163e-05/0.2661, allocations: 67.42 kB / 407.3 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.2662, allocations: 57.94 kB / 407.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2663, allocations: 338.8 kB / 407.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.192e-05/0.2664, allocations: 40.55 kB / 407.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.2666, allocations: 155.6 kB / 407.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.2668, allocations: 217.5 kB / 408.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2668, allocations: 8 kB / 408.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003413/0.2672, allocations: 237.2 kB / 408.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2672, allocations: 14.59 kB / 408.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2672, allocations: 4 kB / 408.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.2673, allocations: 8.422 kB / 408.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.2675, allocations: 67.91 kB / 408.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.2675, allocations: 8.719 kB / 408.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.2676, allocations: 31.78 kB / 408.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.2676, allocations: 8 kB / 408.5 MB, free: 0.7305 MB / 318.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.0001166/0.2678, allocations: 145.7 kB / 408.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.312e-05/0.2678, allocations: 23.8 kB / 408.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.393e-05/0.2679, allocations: 25.39 kB / 408.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2679, allocations: 7.938 kB / 408.7 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2679, allocations: 4 kB / 408.7 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2679, allocations: 4 kB / 408.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000509/0.2685, allocations: 428.8 kB / 409.1 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2685, allocations: 0 / 409.1 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.2687, allocations: 39.97 kB / 409.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2687, allocations: 0 / 409.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.2687, allocations: 8 kB / 409.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2687, allocations: 4.094 kB / 409.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2687, allocations: 4 kB / 409.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.2691, allocations: 381 kB / 409.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.13e-05/0.2692, allocations: 96.97 kB / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.2692, allocations: 8 kB / 409.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.2693, allocations: 8 kB / 409.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.497e-05/0.2694, allocations: 11.97 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.2694, allocations: 8 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.2695, allocations: 144.3 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2695, allocations: 0 / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.2699, allocations: 51.89 kB / 409.9 MB, free: 15.23 MB / 334.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.0001024/0.27, allocations: 108 kB / 410 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002654/0.2703, allocations: 143.8 kB / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2703, allocations: 0 / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.341e-05/0.2704, allocations: 52.92 kB / 410.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.2708, allocations: 28.05 kB / 410.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009123/0.2718, allocations: 0.606 MB / 410.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.2721, allocations: 0.732 MB / 411.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.252e-05/0.2722, allocations: 17.95 kB / 411.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.2722, allocations: 19.44 kB / 411.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2722, allocations: 0 / 411.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Templates: time 0.003931/0.2762, allocations: 1.574 MB / 413.1 MB, free: 11.89 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins/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