Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001116/0.001116, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001062/0.002178, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006231/0.0006231, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009215/0.001545, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8741/0.8741, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1781/1.052, allocations: 52.49 MB / 238.5 MB, free: 7.621 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1249/0.1249, allocations: 32.8 MB / 272 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02023/0.1452, allocations: 12.53 MB / 284.5 MB, free: 9.715 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 285.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.14e-05/1.271e-05, allocations: 5.266 kB / 285.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002602/0.002615, allocations: 2.862 MB / 288.7 MB, free: 5.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009162/0.003531, allocations: 0.7203 MB / 289.4 MB, free: 4.812 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.003659, allocations: 11.94 kB / 289.4 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.00376, allocations: 63.38 kB / 289.5 MB, free: 4.738 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.003929, allocations: 122.8 kB / 289.6 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001488/0.004078, allocations: 95.86 kB / 289.7 MB, free: 4.523 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003079/0.004386, allocations: 457.7 kB / 290.2 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.00454, allocations: 92.78 kB / 290.2 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.004828, allocations: 283.3 kB / 290.5 MB, free: 3.703 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.00499, allocations: 135.6 kB / 290.7 MB, free: 3.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.005031, allocations: 32 kB / 290.7 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.008e-05/0.005071, allocations: 32 kB / 290.7 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.341e-05/0.005114, allocations: 55.81 kB / 290.8 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.403e-05/0.005198, allocations: 119.8 kB / 290.9 MB, free: 3.336 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.00544, allocations: 255.1 kB / 291.1 MB, free: 3.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.00545, allocations: 7.938 kB / 291.1 MB, free: 3.078 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.005451, allocations: 0 / 291.1 MB, free: 3.078 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.005461, allocations: 0 / 291.1 MB, free: 3.078 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.000712/0.006173, allocations: 0.6247 MB / 291.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.819e-05/0.006201, allocations: 12.03 kB / 291.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.926e-05/0.00626, allocations: 60.83 kB / 291.8 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.006459, allocations: 194 kB / 292 MB, free: 2.141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.006477, allocations: 29.38 kB / 292.1 MB, free: 2.113 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.22e-05/0.006519, allocations: 40.36 kB / 292.1 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.006935, allocations: 327.3 kB / 292.4 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.006949, allocations: 4.188 kB / 292.4 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.006966, allocations: 16.38 kB / 292.4 MB, free: 1.695 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.006974, allocations: 11.94 kB / 292.5 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.007091, allocations: 122.3 kB / 292.6 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.00813, allocations: 1.446 MB / 294 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.008354, allocations: 210.2 kB / 294.2 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.472e-05/0.008418, allocations: 66.22 kB / 294.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.008434, allocations: 7.938 kB / 294.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.008457, allocations: 50.45 kB / 294.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.008459, allocations: 4 kB / 294.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.0002392/0.008698, allocations: 165.8 kB / 294.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/0.008768, allocations: 213.6 kB / 294.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.00891, allocations: 256.8 kB / 295 MB, free: 14.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.008923, allocations: 29.7 kB / 295 MB, free: 14.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.069e-05/0.009004, allocations: 239.8 kB / 295.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.483e-05/0.009059, allocations: 119 kB / 295.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/0.009134, allocations: 102.2 kB / 295.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.65e-05/0.00921, allocations: 347.1 kB / 295.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.936e-05/0.00925, allocations: 45.28 kB / 295.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.009434, allocations: 377.1 kB / 296.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.009736, allocations: 0.5036 MB / 296.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.009741, allocations: 4 kB / 296.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003095/0.01005, allocations: 385.8 kB / 297.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.01006, allocations: 8 kB / 297.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.01007, allocations: 12 kB / 297.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.01009, allocations: 16 kB / 297.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.01038, allocations: 178.8 kB / 297.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.0104, allocations: 15.94 kB / 297.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.01054, allocations: 67.55 kB / 297.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.01056, allocations: 31.94 kB / 297.4 MB, free: 12.14 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 8.689e-05/0.01065, allocations: 153.6 kB / 297.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.711e-05/0.01072, allocations: 31.91 kB / 297.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.998e-05/0.01076, allocations: 33.77 kB / 297.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.01077, allocations: 8.188 kB / 297.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.01077, allocations: 0 / 297.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.01078, allocations: 7.984 kB / 297.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/0.01135, allocations: 463.3 kB / 298.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.01135, allocations: 0.625 kB / 298.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003453/0.01169, allocations: 102 kB / 298.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.38e-05/0.01172, allocations: 35.81 kB / 298.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.01172, allocations: 7.938 kB / 298.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.01174, allocations: 19.92 kB / 298.3 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.01175, allocations: 11.92 kB / 298.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.01175, allocations: 4 kB / 298.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.01203, allocations: 0.7324 MB / 299 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.01205, allocations: 8 kB / 299 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.01222, allocations: 8 kB / 299 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.01226, allocations: 31.89 kB / 299 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.01226, allocations: 8 kB / 299.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.649e-05/0.01231, allocations: 78.77 kB / 299.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01231, allocations: 0 / 299.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003939/0.0127, allocations: 107.8 kB / 299.2 MB, free: 10.24 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 7.373e-05/0.01278, allocations: 88.36 kB / 299.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000208/0.01298, allocations: 234.1 kB / 299.6 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/0.013, allocations: 4 kB / 299.6 MB, free: 9.918 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.907e-05/0.01307, allocations: 81.36 kB / 299.6 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000702/0.01377, allocations: 0.7464 MB / 300.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004402/0.01817, allocations: 0.7699 MB / 301.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.882e-05/0.01825, allocations: 116.5 kB / 301.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.501e-05/0.01833, allocations: 39.27 kB / 301.3 MB, free: 7.949 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.01845, allocations: 119.3 kB / 301.4 MB, free: 7.832 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01845, allocations: 0 / 301.4 MB, free: 7.832 MB / 298.7 MB Notification: Performance of Templates: time 0.00456/0.02301, allocations: 3.068 MB / 304.5 MB, free: 4.848 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6923965392634273]