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.001394/0.001394, allocations: 81.91 kB / 21.42 MB, free: 3.07 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.00143/0.00143, allocations: 169.7 kB / 24.82 MB, free: 9.273 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.011/1.011, allocations: 177 MB / 205.1 MB, free: 5.469 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.2971/0.2971, allocations: 34.87 MB / 296.6 MB, free: 452 kB / 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 1.974e-06/1.974e-06, allocations: 3.938 kB / 379.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.788e-05/2.986e-05, allocations: 6.25 kB / 379.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00319/0.00322, allocations: 2.827 MB / 382 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.004372, allocations: 0.7632 MB / 382.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.004545, allocations: 15.88 kB / 382.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.004716, allocations: 59.38 kB / 382.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.004918, allocations: 134.8 kB / 383 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.005214, allocations: 103.8 kB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003625/0.005577, allocations: 457.6 kB / 383.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.005754, allocations: 98.17 kB / 383.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.006095, allocations: 267.4 kB / 383.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.006258, allocations: 131.6 kB / 384 MB, free: 12.96 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.006298, allocations: 32 kB / 384.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.627e-05/0.006374, allocations: 36 kB / 384.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.006426, allocations: 83.72 kB / 384.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.006535, allocations: 139.7 kB / 384.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003048/0.006839, allocations: 290.8 kB / 384.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.006842, allocations: 0 / 384.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.006843, allocations: 0 / 384.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.006849, allocations: 0 / 384.6 MB, free: 12.39 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.0006196/0.007469, allocations: 0.6793 MB / 385.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.007515, allocations: 8.031 kB / 385.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.00768, allocations: 92.64 kB / 385.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.007911, allocations: 229.4 kB / 385.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.007935, allocations: 33.38 kB / 385.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.007985, allocations: 48.31 kB / 385.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005943/0.00858, allocations: 340.8 kB / 386 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.0086, allocations: 8.125 kB / 386 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.008622, allocations: 16.38 kB / 386.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.008632, allocations: 19.88 kB / 386.1 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.008766, allocations: 119.8 kB / 386.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.01012, allocations: 1.975 MB / 388.2 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.01037, allocations: 269.8 kB / 388.4 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.726e-05/0.01044, allocations: 93.72 kB / 388.5 MB, free: 8.168 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.01046, allocations: 8 kB / 388.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.01049, allocations: 49.33 kB / 388.6 MB, free: 8.102 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.523e-06/0.0105, allocations: 0 / 388.6 MB, free: 8.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003125/0.01081, allocations: 193.2 kB / 388.8 MB, free: 7.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.01088, allocations: 217.5 kB / 389 MB, free: 7.645 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.01104, allocations: 318 kB / 389.3 MB, free: 7.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.01106, allocations: 29.7 kB / 389.3 MB, free: 7.285 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.0112, allocations: 294.9 kB / 389.6 MB, free: 6.988 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.01127, allocations: 135 kB / 389.7 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.335e-05/0.01136, allocations: 103.9 kB / 389.8 MB, free: 6.742 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.01153, allocations: 0.5195 MB / 390.4 MB, free: 6.211 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.377e-05/0.01158, allocations: 37.28 kB / 390.4 MB, free: 6.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003396/0.01192, allocations: 0.5118 MB / 390.9 MB, free: 5.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004703/0.01239, allocations: 0.6243 MB / 391.5 MB, free: 4.602 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.0124, allocations: 0 / 391.5 MB, free: 4.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004732/0.01287, allocations: 453.1 kB / 392 MB, free: 4.152 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.0129, allocations: 15.98 kB / 392 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.01291, allocations: 12 kB / 392 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.01294, allocations: 16 kB / 392 MB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.01317, allocations: 143.8 kB / 392.2 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.01319, allocations: 23.92 kB / 392.2 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.01333, allocations: 64 kB / 392.2 MB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.01335, allocations: 28 kB / 392.3 MB, free: 3.855 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.0001141/0.01347, allocations: 204.2 kB / 392.5 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/0.01388, allocations: 47.69 kB / 392.5 MB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.01393, allocations: 33.8 kB / 392.6 MB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.01394, allocations: 8.5 kB / 392.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01394, allocations: 0 / 392.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.01395, allocations: 11.92 kB / 392.6 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007167/0.01467, allocations: 0.594 MB / 393.2 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.01467, allocations: 8.062 kB / 393.2 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.01489, allocations: 91.88 kB / 393.3 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.01489, allocations: 0 / 393.3 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.01491, allocations: 12 kB / 393.3 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.01492, allocations: 7.938 kB / 393.3 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01492, allocations: 0 / 393.3 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004842/0.01541, allocations: 1.087 MB / 394.4 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.563e-05/0.01543, allocations: 23.81 kB / 394.4 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.01546, allocations: 16.19 kB / 394.4 MB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.01562, allocations: 7.984 kB / 394.4 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.01567, allocations: 27.89 kB / 394.4 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.01567, allocations: 8 kB / 394.5 MB, free: 1.586 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.656e-05/0.01577, allocations: 202.9 kB / 394.6 MB, free: 1.391 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01577, allocations: 0 / 394.6 MB, free: 1.391 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004629/0.01623, allocations: 103.8 kB / 394.8 MB, free: 1.289 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.0001397/0.01637, allocations: 104.6 kB / 394.9 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002828/0.01666, allocations: 227.5 kB / 395.1 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.01666, allocations: 320 / 395.1 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.507e-05/0.01672, allocations: 79.5 kB / 395.2 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.01729, allocations: 69.3 kB / 395.2 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.01863, allocations: 1.2 MB / 396.4 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.188e-05/0.01872, allocations: 104.6 kB / 396.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.609e-05/0.01882, allocations: 39.27 kB / 396.6 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.01894, allocations: 134.2 kB / 396.7 MB, free: 15.24 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01894, allocations: 0 / 396.7 MB, free: 15.24 MB / 378.7 MB Notification: Performance of Templates: time 0.006111/0.02505, allocations: 3.169 MB / 399.9 MB, free: 12.12 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.1906277602538466]