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.001307/0.001307, allocations: 81.86 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001536/0.001536, allocations: 168.7 kB / 24.82 MB, free: 8.391 MB / 18.57 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.259/1.259, allocations: 177.1 MB / 205.3 MB, free: 5.531 MB / 186.7 MB " [Timeout remaining time 179] 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.368/0.368, allocations: 34.26 MB / 296.1 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 179] 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 2.254e-06/2.254e-06, allocations: 0 / 378.5 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.936e-05/3.161e-05, allocations: 2.312 kB / 378.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003389/0.00342, allocations: 2.829 MB / 381.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.004925, allocations: 0.7632 MB / 382.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002574/0.005182, allocations: 11.94 kB / 382.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.005377, allocations: 63.31 kB / 382.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.005638, allocations: 134.8 kB / 382.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004262/0.006064, allocations: 107.8 kB / 382.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000528/0.006592, allocations: 453.6 kB / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002369/0.006829, allocations: 102.1 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/0.007235, allocations: 263.4 kB / 383.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.007415, allocations: 123.7 kB / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.123e-05/0.007456, allocations: 32 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.995e-05/0.007536, allocations: 39.98 kB / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.265e-05/0.007589, allocations: 87.67 kB / 383.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.007698, allocations: 143.6 kB / 383.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.008035, allocations: 286.9 kB / 383.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.008037, allocations: 0 / 383.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.008039, allocations: 0 / 383.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.008045, allocations: 0 / 383.9 MB, free: 12.99 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.0007436/0.008788, allocations: 0.6793 MB / 384.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.008835, allocations: 8.031 kB / 384.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002094/0.009044, allocations: 96.64 kB / 384.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.009328, allocations: 228.4 kB / 384.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.009356, allocations: 29.38 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.295e-05/0.009409, allocations: 44.33 kB / 385 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.00976, allocations: 340.8 kB / 385.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.00978, allocations: 8.125 kB / 385.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.009803, allocations: 16.38 kB / 385.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.009817, allocations: 15.94 kB / 385.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.009956, allocations: 126.3 kB / 385.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.01146, allocations: 1.971 MB / 387.4 MB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.01173, allocations: 273.5 kB / 387.7 MB, free: 8.883 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.486e-05/0.0118, allocations: 93.91 kB / 387.8 MB, free: 8.762 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.01183, allocations: 11.94 kB / 387.8 MB, free: 8.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.01186, allocations: 45.39 kB / 387.8 MB, free: 8.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.995e-06/0.01186, allocations: 3.984 kB / 387.8 MB, free: 8.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003671/0.01223, allocations: 197.6 kB / 388 MB, free: 8.492 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/0.01233, allocations: 217.6 kB / 388.2 MB, free: 8.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.01251, allocations: 314 kB / 388.6 MB, free: 7.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.01253, allocations: 29.7 kB / 388.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.01267, allocations: 294.9 kB / 388.9 MB, free: 7.578 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/0.01274, allocations: 135 kB / 389 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.171e-05/0.01284, allocations: 103.9 kB / 389.1 MB, free: 7.332 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.01299, allocations: 0.5156 MB / 389.6 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.634e-05/0.01305, allocations: 37.28 kB / 389.7 MB, free: 6.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.01333, allocations: 0.5196 MB / 390.2 MB, free: 6.031 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004422/0.01377, allocations: 0.6201 MB / 390.8 MB, free: 5.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.01378, allocations: 3.984 kB / 390.8 MB, free: 5.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004557/0.01423, allocations: 449.7 kB / 391.2 MB, free: 4.742 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.01426, allocations: 15.98 kB / 391.3 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.01427, allocations: 12 kB / 391.3 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.01429, allocations: 16 kB / 391.3 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.01452, allocations: 143.8 kB / 391.4 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.01454, allocations: 31.84 kB / 391.5 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.0147, allocations: 64.06 kB / 391.5 MB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.01472, allocations: 28 kB / 391.5 MB, free: 4.438 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.0001294/0.01485, allocations: 200.3 kB / 391.7 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.01495, allocations: 43.75 kB / 391.8 MB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.119e-05/0.015, allocations: 41.78 kB / 391.8 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.01501, allocations: 4 kB / 391.8 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.01501, allocations: 0 / 391.8 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.01502, allocations: 7.984 kB / 391.8 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006928/0.01571, allocations: 0.5939 MB / 392.4 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.01572, allocations: 8.062 kB / 392.4 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.01594, allocations: 91.88 kB / 392.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.01594, allocations: 0 / 392.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.01596, allocations: 12 kB / 392.5 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.01597, allocations: 7.938 kB / 392.5 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01597, allocations: 0 / 392.5 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005292/0.0165, allocations: 1.085 MB / 393.6 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.536e-05/0.01652, allocations: 27.75 kB / 393.7 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.01655, allocations: 16 kB / 393.7 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.01672, allocations: 16.11 kB / 393.7 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.01676, allocations: 23.84 kB / 393.7 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.01677, allocations: 12 kB / 393.7 MB, free: 2.164 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.398e-05/0.01686, allocations: 195 kB / 393.9 MB, free: 1.977 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01686, allocations: 0 / 393.9 MB, free: 1.977 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004358/0.01729, allocations: 103.8 kB / 394 MB, free: 1.875 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.0001091/0.0174, allocations: 106.2 kB / 394.1 MB, free: 1.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002428/0.01764, allocations: 228.1 kB / 394.3 MB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.01765, allocations: 448 / 394.3 MB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.924e-05/0.01772, allocations: 83.44 kB / 394.4 MB, free: 1.453 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.01831, allocations: 74.38 kB / 394.5 MB, free: 1.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.01964, allocations: 1.2 MB / 395.7 MB, free: 120 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.01974, allocations: 104.6 kB / 395.8 MB, free: 16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.01984, allocations: 43.27 kB / 395.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.01997, allocations: 134.2 kB / 396 MB, free: 15.82 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01997, allocations: 0 / 396 MB, free: 15.82 MB / 378.7 MB Notification: Performance of Templates: time 0.005441/0.02541, allocations: 3.162 MB / 399.1 MB, free: 12.72 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] 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","",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.6155450250953436]