Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00293/0.00293, allocations: 92.97 kB / 20.21 MB, free: 4.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003066/0.003066, allocations: 173.2 kB / 23.53 MB, free: 0.8945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 158.6 MB / 185.3 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2422/0.2422, allocations: 32.37 MB / 270 MB, free: 14.76 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.012e-05, allocations: 0 / 346.9 MB, free: 9.816 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.981e-05/4.992e-05, allocations: 6.25 kB / 346.9 MB, free: 9.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003695/0.003745, allocations: 2.809 MB / 349.7 MB, free: 6.984 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.004899, allocations: 0.7292 MB / 350.5 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.005102, allocations: 15.88 kB / 350.5 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.005275, allocations: 59.38 kB / 350.5 MB, free: 6.172 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.005474, allocations: 130.8 kB / 350.7 MB, free: 6.043 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.005714, allocations: 91.86 kB / 350.8 MB, free: 5.953 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.006023, allocations: 453.6 kB / 351.2 MB, free: 5.508 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.006202, allocations: 94.09 kB / 351.3 MB, free: 5.414 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.006446, allocations: 251.5 kB / 351.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001646/0.00661, allocations: 139.6 kB / 351.7 MB, free: 5.031 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.006656, allocations: 32 kB / 351.7 MB, free: 5 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.376e-05/0.00671, allocations: 32 kB / 351.7 MB, free: 4.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.822e-05/0.006758, allocations: 83.61 kB / 351.8 MB, free: 4.887 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.00687, allocations: 139.7 kB / 352 MB, free: 4.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.007217, allocations: 422.7 kB / 352.4 MB, free: 4.336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.007222, allocations: 7.938 kB / 352.4 MB, free: 4.328 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.007223, allocations: 0 / 352.4 MB, free: 4.328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.00723, allocations: 0 / 352.4 MB, free: 4.328 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.000815/0.008045, allocations: 0.7024 MB / 353.1 MB, free: 3.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.008084, allocations: 12.03 kB / 353.1 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.008175, allocations: 72.66 kB / 353.2 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.008421, allocations: 216.8 kB / 353.4 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.008448, allocations: 29.38 kB / 353.4 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.0085, allocations: 44.38 kB / 353.4 MB, free: 3.199 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005004/0.009, allocations: 424.1 kB / 353.9 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.009026, allocations: 8.188 kB / 353.9 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.009053, allocations: 16.38 kB / 353.9 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.009062, allocations: 11.94 kB / 353.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.009389, allocations: 215.7 kB / 354.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.01116, allocations: 2.049 MB / 356.2 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004189/0.01158, allocations: 321.8 kB / 356.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.01182, allocations: 105.8 kB / 356.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.01185, allocations: 11.94 kB / 356.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.0119, allocations: 49.38 kB / 356.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.733e-06/0.0119, allocations: 0 / 356.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007426/0.01265, allocations: 261.2 kB / 356.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001765/0.01282, allocations: 209.6 kB / 357.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.01323, allocations: 368 kB / 357.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.01327, allocations: 33.7 kB / 357.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.01353, allocations: 302.8 kB / 357.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.01366, allocations: 131 kB / 357.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.01385, allocations: 116.3 kB / 358 MB, free: 14.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003835/0.01424, allocations: 0.5352 MB / 358.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.01481, allocations: 93.27 kB / 358.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007056/0.01551, allocations: 0.5743 MB / 359.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009792/0.01649, allocations: 0.7261 MB / 359.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.0165, allocations: 4 kB / 360 MB, free: 11.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009961/0.0175, allocations: 0.5519 MB / 360.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.01752, allocations: 8 kB / 360.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.01754, allocations: 19.92 kB / 360.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/0.01758, allocations: 16 kB / 360.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005667/0.01814, allocations: 143.8 kB / 360.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.776e-05/0.01818, allocations: 27.86 kB / 360.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/0.01851, allocations: 64.06 kB / 360.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.412e-05/0.01855, allocations: 32 kB / 360.8 MB, free: 11.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002831/0.01883, allocations: 224.3 kB / 361 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.01901, allocations: 43.75 kB / 361.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.603e-05/0.0191, allocations: 33.77 kB / 361.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.0191, allocations: 4 kB / 361.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.01911, allocations: 4 kB / 361.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.01912, allocations: 3.984 kB / 361.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.02052, allocations: 0.7033 MB / 361.8 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.02053, allocations: 12.06 kB / 361.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.02098, allocations: 83.89 kB / 361.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.02098, allocations: 4 kB / 361.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.02101, allocations: 15.98 kB / 361.9 MB, free: 9.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.02102, allocations: 0 / 361.9 MB, free: 9.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.02102, allocations: 4 kB / 361.9 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.02222, allocations: 1.144 MB / 363.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.558e-05/0.02227, allocations: 31.8 kB / 363.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.02232, allocations: 12 kB / 363.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.02264, allocations: 8 kB / 363.1 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.879e-05/0.02271, allocations: 32.02 kB / 363.2 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.02273, allocations: 8 kB / 363.2 MB, free: 8.551 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002229/0.02296, allocations: 225.1 kB / 363.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02296, allocations: 0 / 363.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007752/0.02373, allocations: 103.8 kB / 363.5 MB, free: 8.234 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.0001619/0.02389, allocations: 115.2 kB / 363.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006437/0.02454, allocations: 307.6 kB / 363.9 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.02454, allocations: 0 / 363.9 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.02478, allocations: 95.45 kB / 364 MB, free: 7.715 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.02581, allocations: 69.42 kB / 364.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.02796, allocations: 1.229 MB / 365.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.02849, allocations: 198.4 kB / 365.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.0287, allocations: 39.27 kB / 365.5 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.0288, allocations: 36.48 kB / 365.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.0288, allocations: 0 / 365.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of Templates: time 0.008466/0.03727, allocations: 2.879 MB / 368.4 MB, free: 3.25 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: 5.1050825249403715]