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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 159.1 kB / 24.48 MB, free: 3.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 173.4 MB / 201.1 MB, free: 12.59 MB / 190.1 MB " [Timeout remaining time 178] 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=1000,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=1000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002446/0.002446, allocations: 47.61 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.09369, allocations: 52.16 MB / 371.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003651/0.09734, allocations: 2.12 MB / 373.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004817/0.09782, allocations: 199.3 kB / 373.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.09794, allocations: 4 kB / 373.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.806e-05/0.09803, allocations: 35.64 kB / 373.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.0982, allocations: 63.42 kB / 374 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.09837, allocations: 51.94 kB / 374 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002936/0.09866, allocations: 238.9 kB / 374.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.09887, allocations: 82.88 kB / 374.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.09901, allocations: 95.69 kB / 374.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.09917, allocations: 87.56 kB / 374.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.09922, allocations: 20 kB / 374.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.57e-05/0.09926, allocations: 24 kB / 374.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.58e-05/0.09932, allocations: 51.83 kB / 374.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.09942, allocations: 91.59 kB / 374.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003074/0.09973, allocations: 254.9 kB / 374.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09973, allocations: 0 / 374.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09974, allocations: 0 / 374.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.09974, allocations: 4 kB / 374.9 MB, free: 3.961 MB / 334.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.0007375/0.1005, allocations: 449.8 kB / 375.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.1005, allocations: 8.922 kB / 375.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.1006, allocations: 24.8 kB / 375.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.1008, allocations: 170.1 kB / 375.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1008, allocations: 12.88 kB / 375.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.1009, allocations: 24.38 kB / 375.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.1013, allocations: 228.1 kB / 375.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.199e-05/0.1013, allocations: 12.12 kB / 375.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.1013, allocations: 7.938 kB / 375.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.1013, allocations: 12 kB / 375.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.1016, allocations: 131.9 kB / 376 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.1027, allocations: 0.7321 MB / 376.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.1029, allocations: 159.9 kB / 376.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.103, allocations: 54.56 kB / 376.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.103, allocations: 4 kB / 377 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.1031, allocations: 42.5 kB / 377 MB, free: 1.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.1031, allocations: 4 kB / 377 MB, free: 1.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003792/0.1035, allocations: 165.6 kB / 377.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.1035, allocations: 106.8 kB / 377.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.1037, allocations: 179.3 kB / 377.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1037, allocations: 29.7 kB / 377.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1038, allocations: 164.1 kB / 377.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.092e-05/0.1039, allocations: 75.36 kB / 377.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.104, allocations: 49.92 kB / 377.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1041, allocations: 326.8 kB / 378.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.358e-05/0.1042, allocations: 52.55 kB / 378.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.1044, allocations: 155.6 kB / 378.3 MB, free: 356 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.1047, allocations: 225.5 kB / 378.5 MB, free: 80 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1047, allocations: 4 kB / 378.5 MB, free: 76 kB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004028/0.1051, allocations: 238.3 kB / 378.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1051, allocations: 10.97 kB / 378.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.1052, allocations: 7.938 kB / 378.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1052, allocations: 4 kB / 378.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.1054, allocations: 59.92 kB / 378.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.1054, allocations: 11.92 kB / 378.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.1055, allocations: 27.78 kB / 378.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.1056, allocations: 16 kB / 378.9 MB, free: 15.7 MB / 350.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.0001231/0.1057, allocations: 133.8 kB / 379 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/0.1058, allocations: 19.97 kB / 379 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.079e-05/0.1058, allocations: 25.41 kB / 379 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1058, allocations: 3.984 kB / 379 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1058, allocations: 4 kB / 379 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1058, allocations: 192 / 379 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005255/0.1064, allocations: 348.6 kB / 379.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1064, allocations: 0 / 379.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.1066, allocations: 39.92 kB / 379.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1066, allocations: 3.984 kB / 379.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1066, allocations: 8.078 kB / 379.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1066, allocations: 4 kB / 379.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1066, allocations: 4 kB / 379.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/0.107, allocations: 381 kB / 379.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.597e-05/0.107, allocations: 11.91 kB / 379.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.1071, allocations: 8 kB / 379.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.1072, allocations: 0 / 379.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.1072, allocations: 16.02 kB / 379.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.1073, allocations: 11.94 kB / 379.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001074/0.1074, allocations: 120 kB / 380 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1074, allocations: 0 / 380 MB, free: 14.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000381/0.1077, allocations: 63.83 kB / 380 MB, free: 14.44 MB / 350.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.0001177/0.1079, allocations: 111.1 kB / 380.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002649/0.1081, allocations: 131.8 kB / 380.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1081, allocations: 0 / 380.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.309e-05/0.1082, allocations: 52.8 kB / 380.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.1087, allocations: 39.92 kB / 380.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009949/0.1097, allocations: 0.5837 MB / 381 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.1098, allocations: 121.2 kB / 381.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.598e-05/0.1099, allocations: 21.62 kB / 381.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.1099, allocations: 16.5 kB / 381.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1099, allocations: 0 / 381.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of Templates: time 0.004514/0.1145, allocations: 1.414 MB / 382.5 MB, free: 11.92 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile [Timeout 660] (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 ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.20721407502424]