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.001133/0.001133, allocations: 88.25 kB / 22.22 MB, free: 2.281 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.001226/0.001226, allocations: 165.2 kB / 25.61 MB, free: 8.898 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 0.9526/0.9526, allocations: 177 MB / 205.9 MB, free: 4.461 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.1643/0.1643, allocations: 34.88 MB / 297.4 MB, free: 13.35 MB / 282.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 1.643e-06/1.643e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/2.997e-05, allocations: 2.312 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002891/0.002921, allocations: 2.81 MB / 382.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.004008, allocations: 0.7672 MB / 383.6 MB, free: 19.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.004184, allocations: 11.94 kB / 383.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.004316, allocations: 63.31 kB / 383.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.004486, allocations: 130.8 kB / 383.8 MB, free: 18.97 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.004769, allocations: 111.8 kB / 383.9 MB, free: 18.86 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.005058, allocations: 453.6 kB / 384.3 MB, free: 18.42 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.005205, allocations: 102.2 kB / 384.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.005495, allocations: 263.4 kB / 384.7 MB, free: 18.06 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.005641, allocations: 131.6 kB / 384.8 MB, free: 17.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.005674, allocations: 35.94 kB / 384.8 MB, free: 17.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.515e-05/0.005729, allocations: 36 kB / 384.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.461e-05/0.005764, allocations: 87.72 kB / 385 MB, free: 17.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.655e-05/0.00584, allocations: 139.7 kB / 385.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.006072, allocations: 279 kB / 385.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.006075, allocations: 0 / 385.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.006076, allocations: 0 / 385.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.006084, allocations: 3.938 kB / 385.4 MB, free: 17.36 MB / 314.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.0004708/0.006555, allocations: 0.6832 MB / 386.1 MB, free: 16.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.006585, allocations: 12.03 kB / 386.1 MB, free: 16.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.006745, allocations: 88.64 kB / 386.2 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.006928, allocations: 235.2 kB / 386.4 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.006944, allocations: 29.38 kB / 386.4 MB, free: 16.26 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.733e-05/0.006982, allocations: 44.33 kB / 386.5 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.007215, allocations: 336.8 kB / 386.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.00723, allocations: 8.125 kB / 386.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.007249, allocations: 16.38 kB / 386.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.007257, allocations: 15.94 kB / 386.8 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.007367, allocations: 126.5 kB / 387 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.008368, allocations: 1.975 MB / 388.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.00856, allocations: 265.6 kB / 389.2 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.129e-05/0.008611, allocations: 105.9 kB / 389.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.008629, allocations: 11.94 kB / 389.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/0.008646, allocations: 45.39 kB / 389.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.008648, allocations: 0 / 389.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.0002789/0.008927, allocations: 197.5 kB / 389.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.008959, allocations: 209.6 kB / 389.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.009069, allocations: 318 kB / 390.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.009079, allocations: 33.69 kB / 390.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.009156, allocations: 291 kB / 390.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.477e-05/0.009201, allocations: 134.9 kB / 390.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.076e-05/0.009272, allocations: 103.9 kB / 390.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.82e-05/0.00934, allocations: 0.5117 MB / 391.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.736e-05/0.009387, allocations: 41.27 kB / 391.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.009553, allocations: 0.5157 MB / 391.7 MB, free: 10.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.009855, allocations: 0.6162 MB / 392.3 MB, free: 9.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.009859, allocations: 4 kB / 392.3 MB, free: 9.566 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003605/0.01022, allocations: 457 kB / 392.7 MB, free: 9.113 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.01024, allocations: 14.97 kB / 392.8 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.01025, allocations: 12 kB / 392.8 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.01026, allocations: 16 kB / 392.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.01049, allocations: 147.7 kB / 392.9 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.0105, allocations: 20.47 kB / 392.9 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.01065, allocations: 63.61 kB / 393 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.01067, allocations: 28 kB / 393 MB, free: 8.82 MB / 314.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 9.139e-05/0.01076, allocations: 200.3 kB / 393.2 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.455e-05/0.01085, allocations: 43.75 kB / 393.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.01089, allocations: 33.8 kB / 393.3 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.01089, allocations: 8 kB / 393.3 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.0109, allocations: 0 / 393.3 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.0109, allocations: 7.984 kB / 393.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005927/0.01149, allocations: 0.6022 MB / 393.9 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.0115, allocations: 8.062 kB / 393.9 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/0.01171, allocations: 91.83 kB / 394 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.01171, allocations: 192 / 394 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.01173, allocations: 15.98 kB / 394 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01173, allocations: 0 / 394 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01173, allocations: 4 kB / 394 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.01206, allocations: 1.093 MB / 395.1 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.995e-05/0.01208, allocations: 27.75 kB / 395.2 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.0121, allocations: 12 kB / 395.2 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.01227, allocations: 12 kB / 395.2 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.01231, allocations: 27.83 kB / 395.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.01232, allocations: 8 kB / 395.2 MB, free: 6.547 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.565e-05/0.01238, allocations: 199 kB / 395.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.01238, allocations: 0 / 395.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004389/0.01282, allocations: 103.8 kB / 395.5 MB, free: 6.254 MB / 314.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 8.699e-05/0.01291, allocations: 104.2 kB / 395.6 MB, free: 6.145 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002086/0.01312, allocations: 227.8 kB / 395.8 MB, free: 5.918 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01312, allocations: 64 / 395.8 MB, free: 5.918 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.96e-05/0.01318, allocations: 75.47 kB / 395.9 MB, free: 5.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006284/0.01381, allocations: 66.31 kB / 396 MB, free: 5.777 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.01493, allocations: 1.22 MB / 397.2 MB, free: 4.488 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.962e-05/0.015, allocations: 100.6 kB / 397.3 MB, free: 4.367 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.286e-05/0.01509, allocations: 43.25 kB / 397.3 MB, free: 4.328 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.01519, allocations: 134.2 kB / 397.5 MB, free: 4.195 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01519, allocations: 0 / 397.5 MB, free: 4.195 MB / 314.7 MB Notification: Performance of Templates: time 0.004886/0.02008, allocations: 3.21 MB / 400.7 MB, free: 1.062 MB / 314.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.2100851591676474]