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.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.001582/0.001582, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001896/0.001896, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 258.3 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] 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.2274/0.2274, allocations: 44.91 MB / 359.6 MB, free: 6.254 MB / 286.1 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 71.89 kB / 0.4943 GB, free: 10.18 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3148, allocations: 65.46 MB / 0.5582 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005746/0.3206, allocations: 2.869 MB / 0.561 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.3228, allocations: 0.779 MB / 0.5618 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000388/0.3232, allocations: 15.88 kB / 0.5618 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003122/0.3235, allocations: 59.44 kB / 0.5619 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005157/0.324, allocations: 134.8 kB / 0.562 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.3245, allocations: 103.8 kB / 0.5621 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008299/0.3253, allocations: 441.9 kB / 0.5625 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00035/0.3257, allocations: 110 kB / 0.5626 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004876/0.3262, allocations: 175.4 kB / 0.5628 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/0.3266, allocations: 183.2 kB / 0.563 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.651e-05/0.3267, allocations: 32 kB / 0.563 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.3268, allocations: 36 kB / 0.563 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.3269, allocations: 75.7 kB / 0.5631 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003107/0.3272, allocations: 207 kB / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007609/0.328, allocations: 440.6 kB / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.328, allocations: 0 / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.328, allocations: 0 / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.328, allocations: 0 / 0.5637 GB, free: 2.047 MB / 398.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.00141/0.3294, allocations: 0.5937 MB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.3295, allocations: 12.03 kB / 0.5643 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004092/0.3299, allocations: 60.67 kB / 0.5644 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/0.3305, allocations: 217.9 kB / 0.5646 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.3305, allocations: 25.38 kB / 0.5646 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.3306, allocations: 48.33 kB / 0.5647 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009593/0.3316, allocations: 394.5 kB / 0.565 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.668e-05/0.3316, allocations: 11.89 kB / 0.565 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.186e-05/0.3317, allocations: 16 kB / 0.5651 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.3317, allocations: 8 kB / 0.5651 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006818/0.3324, allocations: 227.7 kB / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003422/0.3358, allocations: 1.664 MB / 0.5669 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/0.3365, allocations: 266.2 kB / 0.5672 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002499/0.3367, allocations: 90.08 kB / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.3367, allocations: 4 kB / 0.5672 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.715e-05/0.3368, allocations: 46.5 kB / 0.5673 GB, free: 14.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 3.597e-06/0.3368, allocations: 0 / 0.5673 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.001127/0.3379, allocations: 269.1 kB / 0.5675 GB, free: 13.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001893/0.3381, allocations: 214 kB / 0.5678 GB, free: 13.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004513/0.3386, allocations: 280.4 kB / 0.568 GB, free: 13.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/0.3386, allocations: 33.7 kB / 0.5681 GB, free: 13.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000249/0.3388, allocations: 248.1 kB / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.339, allocations: 119 kB / 0.5684 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.3392, allocations: 98.3 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.3394, allocations: 346.8 kB / 0.5688 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.3397, allocations: 101.2 kB / 0.5689 GB, free: 12.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000677/0.3404, allocations: 432.8 kB / 0.5693 GB, free: 11.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.3415, allocations: 0.5585 MB / 0.5699 GB, free: 11.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.3416, allocations: 8 kB / 0.5699 GB, free: 11.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001434/0.343, allocations: 0.5287 MB / 0.5704 GB, free: 10.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.343, allocations: 8 kB / 0.5704 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.343, allocations: 12 kB / 0.5704 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.077e-05/0.3431, allocations: 16 kB / 0.5704 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006802/0.3438, allocations: 156.2 kB / 0.5706 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-05/0.3438, allocations: 19.92 kB / 0.5706 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.3442, allocations: 63.56 kB / 0.5707 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.3443, allocations: 32.22 kB / 0.5707 GB, free: 10.21 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.0002718/0.3446, allocations: 185.5 kB / 0.5709 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/0.3448, allocations: 35.81 kB / 0.5709 GB, free: 9.984 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.882e-05/0.3449, allocations: 37.81 kB / 0.5709 GB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3449, allocations: 4 kB / 0.571 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.3449, allocations: 7.984 kB / 0.571 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3449, allocations: 0 / 0.571 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/0.3467, allocations: 0.6353 MB / 0.5716 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3467, allocations: 0 / 0.5716 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000615/0.3474, allocations: 87.88 kB / 0.5717 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/0.3474, allocations: 4 kB / 0.5717 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.3474, allocations: 12 kB / 0.5717 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.06e-05/0.3474, allocations: 7.938 kB / 0.5717 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.3474, allocations: 4 kB / 0.5717 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.3485, allocations: 0.8376 MB / 0.5725 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.221e-05/0.3485, allocations: 31.75 kB / 0.5725 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.676e-05/0.3486, allocations: 11.98 kB / 0.5725 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003516/0.3489, allocations: 11.94 kB / 0.5726 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/0.349, allocations: 27.84 kB / 0.5726 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.349, allocations: 11.98 kB / 0.5726 GB, free: 8.164 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.3492, allocations: 195.1 kB / 0.5728 GB, free: 7.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3492, allocations: 0 / 0.5728 GB, free: 7.973 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007701/0.35, allocations: 99.89 kB / 0.5729 GB, free: 7.875 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.0001513/0.3502, allocations: 103.2 kB / 0.573 GB, free: 7.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006153/0.3508, allocations: 278.1 kB / 0.5732 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3508, allocations: 0 / 0.5732 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.351, allocations: 92.64 kB / 0.5733 GB, free: 7.406 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009935/0.352, allocations: 72.64 kB / 0.5734 GB, free: 7.336 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.3545, allocations: 1.595 MB / 0.575 GB, free: 5.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.355, allocations: 0.8103 MB / 0.5757 GB, free: 4.844 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.732e-05/0.3551, allocations: 31.44 kB / 0.5758 GB, free: 4.812 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3551, allocations: 0 / 0.5758 GB, free: 4.812 MB / 414.1 MB Notification: Performance of Templates: time 0.00838/0.3635, allocations: 4.229 MB / 0.5799 GB, free: 0.5898 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 8.075940513052046]