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.001558/0.001558, allocations: 88.59 kB / 20.69 MB, free: 1.02 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.001542/0.001542, allocations: 158.6 kB / 23.95 MB, free: 4.152 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.532/1.532, allocations: 177 MB / 204.1 MB, free: 9.148 MB / 190.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.2341/0.2341, allocations: 34.27 MB / 294.8 MB, free: 14.51 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 1.653e-06/1.653e-06, allocations: 0 / 442.6 MB, free: 5.289 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.068e-05/3.233e-05, allocations: 4.953 kB / 442.6 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004295/0.004328, allocations: 2.646 MB / 445.3 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.005959, allocations: 0.7553 MB / 446 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.006263, allocations: 7.938 kB / 446.1 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.006521, allocations: 63.38 kB / 446.1 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.006904, allocations: 134.8 kB / 446.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.007294, allocations: 103.8 kB / 446.4 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.007916, allocations: 461.6 kB / 446.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.008156, allocations: 90.19 kB / 446.9 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005716/0.008727, allocations: 263.4 kB / 447.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.009014, allocations: 131.5 kB / 447.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.478e-05/0.009088, allocations: 35.98 kB / 447.3 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.009215, allocations: 39.94 kB / 447.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.538e-05/0.00929, allocations: 79.73 kB / 447.4 MB, free: 484 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.009472, allocations: 139.7 kB / 447.6 MB, free: 344 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.199/0.2084, allocations: 435 kB / 448 MB, free: 16.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2084, allocations: 0 / 448 MB, free: 16.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2084, allocations: 1.031 kB / 448 MB, free: 16.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.2085, allocations: 0 / 448 MB, free: 16.16 MB / 366.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.000928/0.2094, allocations: 0.5793 MB / 448.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2094, allocations: 8.719 kB / 448.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002766/0.2097, allocations: 66.47 kB / 448.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.2101, allocations: 219.1 kB / 448.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.2101, allocations: 28.44 kB / 448.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.2102, allocations: 45.7 kB / 448.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.2108, allocations: 395 kB / 449.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.2108, allocations: 10.31 kB / 449.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.2108, allocations: 21.14 kB / 449.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2109, allocations: 14.12 kB / 449.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.2113, allocations: 220 kB / 449.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.2131, allocations: 1.554 MB / 451.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.2134, allocations: 253.1 kB / 451.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.2136, allocations: 88.81 kB / 451.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.2136, allocations: 11.97 kB / 451.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.2136, allocations: 44.8 kB / 451.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.593e-06/0.2136, allocations: 0.5 kB / 451.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006705/0.2143, allocations: 265.6 kB / 451.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.2144, allocations: 217.9 kB / 452 MB, free: 13.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.2146, allocations: 272.5 kB / 452.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2146, allocations: 31.05 kB / 452.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.2147, allocations: 245 kB / 452.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.2148, allocations: 125.5 kB / 452.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.2149, allocations: 97.03 kB / 452.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.538e-05/0.215, allocations: 343.3 kB / 453.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.2151, allocations: 101.5 kB / 453.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002763/0.2154, allocations: 431 kB / 453.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004952/0.2159, allocations: 0.5671 MB / 454.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.2159, allocations: 2.75 kB / 454.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007622/0.2167, allocations: 0.5274 MB / 454.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.2167, allocations: 10.28 kB / 454.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.2167, allocations: 10.38 kB / 454.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.564e-05/0.2168, allocations: 16.28 kB / 454.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.2172, allocations: 147.4 kB / 454.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.282e-05/0.2172, allocations: 22.81 kB / 454.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.2175, allocations: 73.08 kB / 455 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-05/0.2175, allocations: 33.55 kB / 455 MB, free: 11.96 MB / 366.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.0001333/0.2177, allocations: 177.1 kB / 455.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.2178, allocations: 43.81 kB / 455.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.535e-05/0.2179, allocations: 34.09 kB / 455.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.2179, allocations: 4.125 kB / 455.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.2179, allocations: 3.516 kB / 455.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.2179, allocations: 2.828 kB / 455.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.219, allocations: 0.5569 MB / 455.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.219, allocations: 6.375 kB / 455.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004517/0.2195, allocations: 87.56 kB / 455.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2195, allocations: 2.281 kB / 455.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.2195, allocations: 11.27 kB / 455.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.2195, allocations: 5.781 kB / 455.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2195, allocations: 3.969 kB / 455.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006168/0.2201, allocations: 0.8252 MB / 456.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/0.2202, allocations: 35.83 kB / 456.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.2202, allocations: 8.891 kB / 456.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.2206, allocations: 12.56 kB / 456.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.81e-05/0.2206, allocations: 31.72 kB / 456.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.2206, allocations: 7.828 kB / 456.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.2208, allocations: 174.6 kB / 457 MB, free: 10.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2208, allocations: 0 / 457 MB, free: 10.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000887/0.2217, allocations: 106.7 kB / 457.1 MB, free: 10.48 MB / 366.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.0001056/0.2218, allocations: 112.5 kB / 457.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005149/0.2223, allocations: 274.4 kB / 457.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2223, allocations: 0 / 457.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.2225, allocations: 91.98 kB / 457.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000997/0.2235, allocations: 74.69 kB / 457.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.2249, allocations: 1.176 MB / 458.8 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.2251, allocations: 195.8 kB / 459 MB, free: 9.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.2253, allocations: 44.95 kB / 459.1 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.803e-05/0.2253, allocations: 29.92 kB / 459.1 MB, free: 9.242 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2253, allocations: 0 / 459.1 MB, free: 9.242 MB / 366.1 MB Notification: Performance of Templates: time 0.007338/0.2327, allocations: 2.872 MB / 462 MB, free: 8.879 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/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: 5.10928713157773]