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.001157/0.001157, allocations: 108.4 kB / 18.35 MB, free: 4.723 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.001084/0.001084, allocations: 182.9 kB / 19.29 MB, free: 3.797 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.385/1.385, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.002134/0.002134, allocations: 51.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1201, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.005105/0.1253, allocations: 2.239 MB / 331 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005664/0.1259, allocations: 203.2 kB / 331.2 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.126, allocations: 8 kB / 331.2 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.1262, allocations: 31.66 kB / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.1264, allocations: 67.3 kB / 331.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.1267, allocations: 59.91 kB / 331.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003666/0.1271, allocations: 231 kB / 331.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.1274, allocations: 110.6 kB / 331.7 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.1276, allocations: 87.72 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.1278, allocations: 103.5 kB / 331.8 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.136e-05/0.1279, allocations: 20 kB / 331.9 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.431e-05/0.1279, allocations: 24 kB / 331.9 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.477e-05/0.128, allocations: 43.84 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.1282, allocations: 119.5 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003419/0.1286, allocations: 251.1 kB / 332.3 MB, free: 160 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.1286, allocations: 0 / 332.3 MB, free: 160 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1286, allocations: 7.938 kB / 332.3 MB, free: 152 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1286, allocations: 0 / 332.3 MB, free: 152 kB / 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.0009861/0.1296, allocations: 0.5032 MB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1297, allocations: 12.03 kB / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/0.1298, allocations: 24.66 kB / 332.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.1301, allocations: 216 kB / 333.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1301, allocations: 20.94 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.588e-05/0.1302, allocations: 20.38 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.1307, allocations: 232.8 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.1308, allocations: 4.188 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.1308, allocations: 15.94 kB / 333.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1309, allocations: 4 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.1313, allocations: 135.8 kB / 333.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.133, allocations: 0.8593 MB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003926/0.1334, allocations: 167.7 kB / 334.5 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.1336, allocations: 66.56 kB / 334.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.1337, allocations: 0 / 334.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.1337, allocations: 38.5 kB / 334.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 4.619e-06/0.1337, allocations: 0 / 334.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006175/0.1344, allocations: 173.6 kB / 334.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.66e-05/0.1344, allocations: 102.8 kB / 334.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.1348, allocations: 206.6 kB / 335.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.1348, allocations: 29.7 kB / 335.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.1349, allocations: 159.8 kB / 335.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.135, allocations: 63.11 kB / 335.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.1352, allocations: 49.98 kB / 335.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1354, allocations: 330.8 kB / 335.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.1355, allocations: 44.55 kB / 335.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.1358, allocations: 158.7 kB / 335.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004663/0.1363, allocations: 222.2 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1363, allocations: 0 / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006437/0.137, allocations: 249.1 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.137, allocations: 11.94 kB / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.137, allocations: 4 kB / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.1371, allocations: 4 kB / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.1375, allocations: 63.84 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1375, allocations: 4 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.1378, allocations: 28.12 kB / 336.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.1378, allocations: 20 kB / 336.5 MB, free: 11.58 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.0001711/0.138, allocations: 137.7 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.1382, allocations: 27.73 kB / 336.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.108e-05/0.1382, allocations: 17.41 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.1383, allocations: 4 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1383, allocations: 0 / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1383, allocations: 0 / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008708/0.1392, allocations: 436.7 kB / 337.1 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1392, allocations: 4 kB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.1395, allocations: 31.98 kB / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.1395, allocations: 4 kB / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.1396, allocations: 8 kB / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1396, allocations: 0 / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.1396, allocations: 3.938 kB / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005974/0.1402, allocations: 380.2 kB / 337.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.047e-05/0.1403, allocations: 96.92 kB / 337.6 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.1403, allocations: 0 / 337.6 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.1405, allocations: 11.94 kB / 337.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.804e-05/0.1405, allocations: 15.91 kB / 337.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.1405, allocations: 12 kB / 337.6 MB, free: 10.3 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.1407, allocations: 140.3 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1407, allocations: 4 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.141, allocations: 55.84 kB / 337.8 MB, free: 10.11 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.0001316/0.1412, allocations: 103.2 kB / 337.9 MB, free: 9.996 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.1414, allocations: 136.4 kB / 338.1 MB, free: 9.863 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1415, allocations: 7.875 kB / 338.1 MB, free: 9.855 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.55e-05/0.1415, allocations: 51.92 kB / 338.1 MB, free: 9.805 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.142, allocations: 33.05 kB / 338.2 MB, free: 9.773 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009255/0.143, allocations: 0.5917 MB / 338.8 MB, free: 9.141 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.1433, allocations: 0.7359 MB / 339.5 MB, free: 8.375 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.378e-05/0.1434, allocations: 25.94 kB / 339.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.071e-05/0.1434, allocations: 19.38 kB / 339.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1434, allocations: 0 / 339.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of Templates: time 0.00414/0.1476, allocations: 1.518 MB / 341.1 MB, free: 6.812 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches