Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001863/0.001863, allocations: 82.42 kB / 20.68 MB, free: 1.035 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.002197/0.002197, allocations: 163.6 kB / 23.95 MB, free: 4.168 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.524/1.524, allocations: 177.1 MB / 204.3 MB, free: 9.203 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2209/0.2209, allocations: 34.27 MB / 294.9 MB, free: 14.61 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 3.938 kB / 442.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.427e-05/2.591e-05, allocations: 2.281 kB / 442.7 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004549/0.004575, allocations: 2.658 MB / 445.3 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.006101, allocations: 0.7476 MB / 446.1 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.006269, allocations: 15.88 kB / 446.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.00645, allocations: 51.45 kB / 446.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.006712, allocations: 146.7 kB / 446.3 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.007078, allocations: 99.84 kB / 446.4 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005093/0.007587, allocations: 457.6 kB / 446.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.00781, allocations: 94.2 kB / 446.9 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004073/0.008217, allocations: 267.4 kB / 447.2 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.008439, allocations: 131.6 kB / 447.3 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.008496, allocations: 32 kB / 447.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.008601, allocations: 47.92 kB / 447.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.008679, allocations: 75.73 kB / 447.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.008853, allocations: 135.7 kB / 447.6 MB, free: 488 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005327/0.009386, allocations: 434.6 kB / 448 MB, free: 52 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.00939, allocations: 0 / 448 MB, free: 52 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.009391, allocations: 4 kB / 448 MB, free: 48 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.009399, allocations: 3.938 kB / 448 MB, free: 44 kB / 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.2076/0.217, allocations: 0.5698 MB / 448.6 MB, free: 19.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.217, allocations: 10.84 kB / 448.6 MB, free: 19.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003613/0.2174, allocations: 66.28 kB / 448.7 MB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.2177, allocations: 224.1 kB / 448.9 MB, free: 19.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.158e-05/0.2177, allocations: 28.66 kB / 448.9 MB, free: 19.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.809e-05/0.2178, allocations: 42.62 kB / 449 MB, free: 19.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007763/0.2186, allocations: 392.4 kB / 449.3 MB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.2186, allocations: 7.391 kB / 449.3 MB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.2186, allocations: 17.31 kB / 449.4 MB, free: 19.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.2187, allocations: 14.83 kB / 449.4 MB, free: 19.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00057/0.2192, allocations: 220.6 kB / 449.6 MB, free: 19.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.2214, allocations: 1.551 MB / 451.1 MB, free: 17.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006019/0.222, allocations: 256.2 kB / 451.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.2222, allocations: 90.91 kB / 451.5 MB, free: 17.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.2223, allocations: 7.688 kB / 451.5 MB, free: 17.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.2223, allocations: 48.44 kB / 451.5 MB, free: 17.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.994e-06/0.2223, allocations: 0 / 451.5 MB, free: 17.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007849/0.2231, allocations: 266.6 kB / 451.8 MB, free: 17.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.2232, allocations: 215.8 kB / 452 MB, free: 17.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.2234, allocations: 266.3 kB / 452.3 MB, free: 16.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2234, allocations: 30.95 kB / 452.3 MB, free: 16.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.2235, allocations: 246.1 kB / 452.5 MB, free: 16.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.65e-05/0.2236, allocations: 124.9 kB / 452.7 MB, free: 16.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.2237, allocations: 100.2 kB / 452.8 MB, free: 16.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.2238, allocations: 344.9 kB / 453.1 MB, free: 16.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.224, allocations: 98.52 kB / 453.2 MB, free: 16.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.2244, allocations: 426.8 kB / 453.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006137/0.225, allocations: 0.5742 MB / 454.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.225, allocations: 2.75 kB / 454.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008844/0.2259, allocations: 0.5228 MB / 454.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.2259, allocations: 13.42 kB / 454.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.2259, allocations: 12.31 kB / 454.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.869e-05/0.226, allocations: 19.88 kB / 454.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004647/0.2264, allocations: 147.1 kB / 454.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.898e-05/0.2265, allocations: 21.73 kB / 454.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003457/0.2268, allocations: 68.81 kB / 455 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/0.2268, allocations: 32.16 kB / 455 MB, free: 14.9 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.0001677/0.227, allocations: 179.6 kB / 455.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.2272, allocations: 37 kB / 455.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.468e-05/0.2272, allocations: 33.53 kB / 455.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.2273, allocations: 5.125 kB / 455.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.2273, allocations: 8.438 kB / 455.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.2273, allocations: 3.156 kB / 455.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.2284, allocations: 0.5627 MB / 455.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2284, allocations: 2.188 kB / 455.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.2289, allocations: 87.78 kB / 455.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.2289, allocations: 2.438 kB / 455.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.2289, allocations: 11.16 kB / 455.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.2289, allocations: 3.344 kB / 455.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.2289, allocations: 6.828 kB / 456 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006568/0.2296, allocations: 0.8296 MB / 456.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.126e-05/0.2296, allocations: 31.16 kB / 456.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.746e-05/0.2297, allocations: 10.05 kB / 456.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.23, allocations: 10.34 kB / 456.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.2301, allocations: 32.28 kB / 456.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.2301, allocations: 9.5 kB / 456.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001459/0.2303, allocations: 172.5 kB / 457 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2303, allocations: 5.594 kB / 457 MB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008009/0.2311, allocations: 105.7 kB / 457.2 MB, free: 13.42 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.0001256/0.2312, allocations: 112.6 kB / 457.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005619/0.2318, allocations: 281 kB / 457.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2318, allocations: 1.688 kB / 457.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.2319, allocations: 89.75 kB / 457.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.2329, allocations: 78.67 kB / 457.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.2347, allocations: 1.186 MB / 458.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.2349, allocations: 191.5 kB / 459.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.2351, allocations: 45.19 kB / 459.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.2352, allocations: 28.89 kB / 459.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2352, allocations: 0 / 459.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of Templates: time 0.008669/0.2438, allocations: 2.861 MB / 462 MB, free: 11.83 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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: 5.035040207207203]