Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 230.5 MB / 258.1 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 46.92 MB / 361.5 MB, free: 4.293 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 79.88 kB / 0.4974 GB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2756, allocations: 66.09 MB / 0.562 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003926/0.2795, allocations: 2.855 MB / 0.5648 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.2808, allocations: 0.7868 MB / 0.5655 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.2809, allocations: 15.88 kB / 0.5655 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.2811, allocations: 59.38 kB / 0.5656 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000225/0.2813, allocations: 122.9 kB / 0.5657 GB, free: 424 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.2816, allocations: 115.8 kB / 0.5658 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.2821, allocations: 430 kB / 0.5662 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.2823, allocations: 110 kB / 0.5663 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.2826, allocations: 179.4 kB / 0.5665 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.2828, allocations: 183.2 kB / 0.5667 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.488e-05/0.2828, allocations: 32 kB / 0.5667 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.927e-05/0.2829, allocations: 32 kB / 0.5667 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.475e-05/0.283, allocations: 87.69 kB / 0.5668 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.2832, allocations: 203 kB / 0.567 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004726/0.2836, allocations: 436.5 kB / 0.5674 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2836, allocations: 8 kB / 0.5674 GB, free: 14.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2837, allocations: 0 / 0.5674 GB, free: 14.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.2837, allocations: 0 / 0.5674 GB, free: 14.63 MB / 414.1 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.0009051/0.2846, allocations: 0.5872 MB / 0.568 GB, free: 14.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.2846, allocations: 12.03 kB / 0.568 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002425/0.2848, allocations: 60.67 kB / 0.5681 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.2852, allocations: 218.7 kB / 0.5683 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.2852, allocations: 25.38 kB / 0.5683 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.757e-05/0.2853, allocations: 48.31 kB / 0.5684 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006033/0.2859, allocations: 394.5 kB / 0.5687 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.2859, allocations: 15.94 kB / 0.5688 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.2859, allocations: 16 kB / 0.5688 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.286, allocations: 12 kB / 0.5688 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004111/0.2864, allocations: 219.7 kB / 0.569 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.2885, allocations: 1.664 MB / 0.5706 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004407/0.289, allocations: 262.3 kB / 0.5709 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.2891, allocations: 86.08 kB / 0.5709 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.2892, allocations: 4.234 kB / 0.571 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.2892, allocations: 46.5 kB / 0.571 GB, free: 10.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.2892, allocations: 0 / 0.571 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006465/0.2898, allocations: 269.1 kB / 0.5713 GB, free: 10.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.29, allocations: 217.9 kB / 0.5715 GB, free: 10.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.2902, allocations: 276.5 kB / 0.5717 GB, free: 9.898 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2902, allocations: 33.7 kB / 0.5718 GB, free: 9.859 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.2904, allocations: 244 kB / 0.572 GB, free: 9.617 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.452e-05/0.2905, allocations: 119 kB / 0.5721 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.2906, allocations: 102.3 kB / 0.5722 GB, free: 9.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.2908, allocations: 350.7 kB / 0.5725 GB, free: 9.043 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.291, allocations: 97.25 kB / 0.5726 GB, free: 8.945 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.2914, allocations: 432.8 kB / 0.573 GB, free: 8.367 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006794/0.2921, allocations: 0.5705 MB / 0.5736 GB, free: 7.637 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.2921, allocations: 8 kB / 0.5736 GB, free: 7.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008404/0.2929, allocations: 0.5287 MB / 0.5741 GB, free: 7.094 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.2929, allocations: 10.34 kB / 0.5741 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.293, allocations: 12 kB / 0.5741 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.293, allocations: 16 kB / 0.5742 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.2934, allocations: 147.7 kB / 0.5743 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.217e-05/0.2934, allocations: 23.92 kB / 0.5743 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.2937, allocations: 67.55 kB / 0.5744 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.2937, allocations: 36.19 kB / 0.5744 GB, free: 6.789 MB / 414.1 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.0001745/0.2939, allocations: 186.8 kB / 0.5746 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.294, allocations: 31.81 kB / 0.5746 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.307e-05/0.2941, allocations: 33.83 kB / 0.5747 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.2941, allocations: 7.984 kB / 0.5747 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.2941, allocations: 4.5 kB / 0.5747 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2941, allocations: 0 / 0.5747 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.2953, allocations: 0.627 MB / 0.5753 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.2953, allocations: 4 kB / 0.5753 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.2957, allocations: 91.88 kB / 0.5754 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.2957, allocations: 4 kB / 0.5754 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.2958, allocations: 8 kB / 0.5754 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/0.2958, allocations: 7.938 kB / 0.5754 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2958, allocations: 4 kB / 0.5754 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007675/0.2965, allocations: 0.8377 MB / 0.5762 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.265e-05/0.2966, allocations: 31.75 kB / 0.5762 GB, free: 4.816 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.2966, allocations: 8 kB / 0.5763 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000323/0.297, allocations: 15.92 kB / 0.5763 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.088e-05/0.297, allocations: 23.91 kB / 0.5763 GB, free: 4.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.297, allocations: 11.98 kB / 0.5763 GB, free: 4.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.2972, allocations: 191.1 kB / 0.5765 GB, free: 4.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2972, allocations: 0 / 0.5765 GB, free: 4.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006677/0.2979, allocations: 99.89 kB / 0.5766 GB, free: 4.473 MB / 414.1 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.000132/0.298, allocations: 107.2 kB / 0.5767 GB, free: 4.359 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005127/0.2985, allocations: 282.2 kB / 0.577 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2985, allocations: 0 / 0.577 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.2987, allocations: 84.78 kB / 0.577 GB, free: 4.004 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008887/0.2996, allocations: 79.39 kB / 0.5771 GB, free: 3.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.3018, allocations: 1.595 MB / 0.5787 GB, free: 2.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.3022, allocations: 0.8065 MB / 0.5795 GB, free: 1.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.638e-05/0.3023, allocations: 31.44 kB / 0.5795 GB, free: 1.41 MB / 414.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3023, allocations: 0 / 0.5795 GB, free: 1.41 MB / 414.1 MB Notification: Performance of Templates: time 0.006351/0.3086, allocations: 4.227 MB / 0.5836 GB, free: 13.19 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 7.030101735144854]