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.00108/0.00108, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.001209/0.001209, allocations: 165.2 kB / 24.99 MB, free: 8.219 MB / 18.57 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.122/1.122, allocations: 177 MB / 205.2 MB, free: 5.52 MB / 186.7 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.2778/0.2778, allocations: 34.86 MB / 296.6 MB, free: 0.5234 MB / 266.7 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 3.237e-06/3.237e-06, allocations: 4 kB / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.747e-05/4.071e-05, allocations: 3.297 kB / 378.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00315/0.003191, allocations: 2.851 MB / 381.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.00429, allocations: 0.7671 MB / 382.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.004443, allocations: 11.88 kB / 382.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.004611, allocations: 59.44 kB / 382.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.004779, allocations: 130.8 kB / 382.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.005093, allocations: 107.8 kB / 382.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.005488, allocations: 457.6 kB / 383.1 MB, free: 14.03 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.005723, allocations: 98.11 kB / 383.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.006059, allocations: 267.4 kB / 383.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.00622, allocations: 131.6 kB / 383.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.208e-05/0.006262, allocations: 32 kB / 383.6 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-05/0.006334, allocations: 40 kB / 383.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.112e-05/0.006385, allocations: 75.73 kB / 383.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.00649, allocations: 147.6 kB / 383.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.006804, allocations: 286.9 kB / 384.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.006807, allocations: 0 / 384.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.006808, allocations: 0 / 384.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.006814, allocations: 0 / 384.2 MB, free: 12.97 MB / 362.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.0007173/0.007531, allocations: 0.6793 MB / 384.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.007573, allocations: 8.031 kB / 384.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.007793, allocations: 92.64 kB / 384.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.008063, allocations: 225.4 kB / 385.2 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.008086, allocations: 29.38 kB / 385.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.008139, allocations: 44.33 kB / 385.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.008532, allocations: 364.8 kB / 385.6 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.008553, allocations: 12.08 kB / 385.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.008579, allocations: 16.38 kB / 385.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.008593, allocations: 15.88 kB / 385.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.008796, allocations: 143.2 kB / 385.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.0103, allocations: 1.959 MB / 387.7 MB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.01059, allocations: 289.7 kB / 388 MB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.755e-05/0.01067, allocations: 101.8 kB / 388.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.01069, allocations: 4 kB / 388.1 MB, free: 8.695 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.01072, allocations: 49.33 kB / 388.2 MB, free: 8.637 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.114e-06/0.01072, allocations: 0 / 388.2 MB, free: 8.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005506/0.01128, allocations: 209.2 kB / 388.4 MB, free: 8.426 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.995e-05/0.01138, allocations: 217.5 kB / 388.6 MB, free: 8.164 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.0116, allocations: 314.1 kB / 388.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.01162, allocations: 29.7 kB / 388.9 MB, free: 7.809 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.01175, allocations: 298.8 kB / 389.2 MB, free: 7.508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.487e-05/0.01182, allocations: 127.4 kB / 389.3 MB, free: 7.383 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.842e-05/0.0119, allocations: 104 kB / 389.4 MB, free: 7.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.01213, allocations: 0.5157 MB / 389.9 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.538e-05/0.01221, allocations: 49.28 kB / 390 MB, free: 6.695 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.01251, allocations: 0.5197 MB / 390.5 MB, free: 5.957 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005852/0.01309, allocations: 0.6319 MB / 391.1 MB, free: 5.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.0131, allocations: 4 kB / 391.2 MB, free: 5.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000475/0.01357, allocations: 481.7 kB / 391.6 MB, free: 4.625 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.01359, allocations: 8 kB / 391.6 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.01361, allocations: 15.98 kB / 391.6 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.01363, allocations: 16 kB / 391.7 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.01389, allocations: 147.7 kB / 391.8 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.0139, allocations: 19.94 kB / 391.8 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.01405, allocations: 67.95 kB / 391.9 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.01408, allocations: 36 kB / 391.9 MB, free: 4.32 MB / 362.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.0001192/0.0142, allocations: 208.3 kB / 392.1 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.266e-05/0.01429, allocations: 43.75 kB / 392.2 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.031e-05/0.01434, allocations: 33.8 kB / 392.2 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.01434, allocations: 4 kB / 392.2 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.01435, allocations: 4 kB / 392.2 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.01436, allocations: 3.984 kB / 392.2 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/0.01511, allocations: 0.6407 MB / 392.9 MB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.01512, allocations: 4 kB / 392.9 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.01537, allocations: 96.02 kB / 393 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.01537, allocations: 4 kB / 393 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.0154, allocations: 8 kB / 393 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.01541, allocations: 7.984 kB / 393 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.01541, allocations: 3.938 kB / 393 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.01597, allocations: 1.087 MB / 394.1 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.016, allocations: 31.75 kB / 394.1 MB, free: 2.051 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.01603, allocations: 15.98 kB / 394.1 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.0162, allocations: 12 kB / 394.1 MB, free: 2.023 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.01626, allocations: 19.91 kB / 394.1 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.01627, allocations: 15.98 kB / 394.2 MB, free: 1.988 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.01638, allocations: 199 kB / 394.4 MB, free: 1.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01638, allocations: 4 kB / 394.4 MB, free: 1.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004512/0.01683, allocations: 99.83 kB / 394.5 MB, free: 1.695 MB / 362.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.0001178/0.01695, allocations: 104.6 kB / 394.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.01758, allocations: 243.5 kB / 394.8 MB, free: 1.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.01758, allocations: 320 / 394.8 MB, free: 1.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.793e-05/0.01766, allocations: 79.52 kB / 394.9 MB, free: 1.262 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/0.0183, allocations: 65.48 kB / 394.9 MB, free: 1.195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.01979, allocations: 1.204 MB / 396.1 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.382e-05/0.01988, allocations: 104.6 kB / 396.2 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.01998, allocations: 47.25 kB / 396.3 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.02004, allocations: 32.5 kB / 396.3 MB, free: 15.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.02004, allocations: 0 / 396.3 MB, free: 15.72 MB / 378.7 MB Notification: Performance of Templates: time 0.005564/0.0256, allocations: 2.888 MB / 399.2 MB, free: 12.89 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5053421589545906]