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.001779/0.001779, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002165/0.002165, allocations: 211.4 kB / 24.48 MB, free: 3.934 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.495/1.495, allocations: 230.5 MB / 258.1 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.2319/0.2319, allocations: 46.95 MB / 361.6 MB, free: 3.926 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.002646/0.002646, allocations: 79.88 kB / 0.4974 GB, free: 7.043 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3039, allocations: 66.09 MB / 0.5619 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004306/0.3082, allocations: 2.641 MB / 0.5645 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.3097, allocations: 0.7479 MB / 0.5652 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.3099, allocations: 11.94 kB / 0.5652 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.3101, allocations: 59.38 kB / 0.5653 GB, free: 492 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002549/0.3104, allocations: 122.9 kB / 0.5654 GB, free: 368 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.3107, allocations: 107.8 kB / 0.5655 GB, free: 260 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.3112, allocations: 441.9 kB / 0.5659 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.3114, allocations: 102 kB / 0.566 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/0.3117, allocations: 187.3 kB / 0.5662 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.312, allocations: 155.2 kB / 0.5664 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.312, allocations: 32 kB / 0.5664 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.753e-05/0.3121, allocations: 36 kB / 0.5664 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.3122, allocations: 75.7 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.3124, allocations: 167.3 kB / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005318/0.3129, allocations: 444.5 kB / 0.5671 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3129, allocations: 4 kB / 0.5671 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3129, allocations: 4 kB / 0.5671 GB, free: 14.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3129, allocations: 0 / 0.5671 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.001004/0.3139, allocations: 0.5794 MB / 0.5676 GB, free: 14.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.314, allocations: 12.03 kB / 0.5677 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002584/0.3142, allocations: 60.67 kB / 0.5677 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.3146, allocations: 230.7 kB / 0.5679 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.3147, allocations: 29.36 kB / 0.568 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.3147, allocations: 44.33 kB / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006633/0.3154, allocations: 398.5 kB / 0.5684 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.3154, allocations: 3.953 kB / 0.5684 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.3155, allocations: 16 kB / 0.5684 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.3155, allocations: 12 kB / 0.5684 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.3159, allocations: 215.7 kB / 0.5686 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.3182, allocations: 1.551 MB / 0.5701 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.3187, allocations: 258.3 kB / 0.5704 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.3189, allocations: 90.08 kB / 0.5705 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.3189, allocations: 11.94 kB / 0.5705 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.319, allocations: 38.56 kB / 0.5705 GB, free: 10.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.755e-06/0.319, allocations: 0 / 0.5705 GB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007011/0.3197, allocations: 265.2 kB / 0.5708 GB, free: 10.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.3198, allocations: 213.6 kB / 0.571 GB, free: 10.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.3201, allocations: 260.5 kB / 0.5712 GB, free: 10.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.3201, allocations: 33.7 kB / 0.5713 GB, free: 10.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.3203, allocations: 256 kB / 0.5715 GB, free: 9.766 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.3204, allocations: 123 kB / 0.5716 GB, free: 9.645 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.3206, allocations: 106.2 kB / 0.5717 GB, free: 9.535 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3207, allocations: 346.7 kB / 0.572 GB, free: 9.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.321, allocations: 93.27 kB / 0.5721 GB, free: 9.094 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000503/0.3215, allocations: 432.8 kB / 0.5725 GB, free: 8.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00077/0.3222, allocations: 0.5663 MB / 0.5731 GB, free: 7.789 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.3222, allocations: 4 kB / 0.5731 GB, free: 7.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000935/0.3232, allocations: 0.5293 MB / 0.5736 GB, free: 7.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.3232, allocations: 14.2 kB / 0.5736 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.3232, allocations: 19.94 kB / 0.5737 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/0.3233, allocations: 16 kB / 0.5737 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.3237, allocations: 144.2 kB / 0.5738 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.455e-05/0.3237, allocations: 23.92 kB / 0.5738 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.324, allocations: 59.62 kB / 0.5739 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.096e-05/0.3241, allocations: 36 kB / 0.5739 GB, free: 6.945 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.0002038/0.3243, allocations: 185.5 kB / 0.5741 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.3244, allocations: 31.81 kB / 0.5741 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.35e-05/0.3245, allocations: 37.73 kB / 0.5742 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.3245, allocations: 8 kB / 0.5742 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.371e-06/0.3245, allocations: 0 / 0.5742 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3245, allocations: 4 kB / 0.5742 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.3258, allocations: 0.5574 MB / 0.5747 GB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3258, allocations: 4 kB / 0.5747 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004448/0.3262, allocations: 87.88 kB / 0.5748 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.3263, allocations: 4 kB / 0.5748 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.3263, allocations: 8 kB / 0.5748 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.3263, allocations: 12.05 kB / 0.5748 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/0.3263, allocations: 7.938 kB / 0.5748 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008765/0.3272, allocations: 0.8337 MB / 0.5757 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.282e-05/0.3272, allocations: 35.67 kB / 0.5757 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.3273, allocations: 8 kB / 0.5757 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.3276, allocations: 12 kB / 0.5757 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.3277, allocations: 27.89 kB / 0.5757 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.3277, allocations: 8 kB / 0.5757 GB, free: 4.988 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.3279, allocations: 179.1 kB / 0.5759 GB, free: 4.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3279, allocations: 0 / 0.5759 GB, free: 4.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007534/0.3286, allocations: 99.89 kB / 0.576 GB, free: 4.719 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.0001272/0.3287, allocations: 115 kB / 0.5761 GB, free: 4.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005777/0.3293, allocations: 278 kB / 0.5764 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3293, allocations: 0 / 0.5764 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.3295, allocations: 88.7 kB / 0.5765 GB, free: 4.242 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009745/0.3305, allocations: 72.61 kB / 0.5765 GB, free: 4.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3329, allocations: 1.591 MB / 0.5781 GB, free: 2.516 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.3331, allocations: 194.2 kB / 0.5783 GB, free: 2.305 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.88e-05/0.3332, allocations: 31.44 kB / 0.5783 GB, free: 2.273 MB / 414.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3332, allocations: 0 / 0.5783 GB, free: 2.273 MB / 414.1 MB Notification: Performance of Templates: time 0.007404/0.3406, allocations: 4.356 MB / 0.5826 GB, free: 13.93 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.841195653192699]