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.0009385/0.0009385, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.000919/0.000919, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.9413/0.9413, allocations: 177 MB / 204.8 MB, free: 5.574 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.2767/0.2767, allocations: 34.86 MB / 296.3 MB, free: 0.5391 MB / 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.203e-06/1.203e-06, allocations: 0 / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.534e-05/1.654e-05, allocations: 2.312 kB / 378.8 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002665/0.002681, allocations: 2.866 MB / 381.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.003856, allocations: 0.7594 MB / 382.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.004017, allocations: 15.81 kB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.004145, allocations: 55.45 kB / 382.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.004315, allocations: 138.8 kB / 382.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.004541, allocations: 103.8 kB / 382.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002933/0.004834, allocations: 461.6 kB / 383.1 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.004971, allocations: 94.12 kB / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002369/0.005208, allocations: 267.4 kB / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.005335, allocations: 139.6 kB / 383.6 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.005369, allocations: 32 kB / 383.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.833e-05/0.005427, allocations: 40 kB / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.929e-05/0.005466, allocations: 75.73 kB / 383.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.074e-05/0.005557, allocations: 135.7 kB / 383.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.005799, allocations: 294.8 kB / 384.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.0058, allocations: 0 / 384.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.005801, allocations: 0 / 384.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.005805, allocations: 0 / 384.2 MB, free: 12.64 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.0005475/0.006353, allocations: 0.6832 MB / 384.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.006383, allocations: 8.031 kB / 384.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.006542, allocations: 88.64 kB / 385 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.00675, allocations: 225.4 kB / 385.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.006774, allocations: 29.38 kB / 385.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.006823, allocations: 44.33 kB / 385.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003365/0.007159, allocations: 356.9 kB / 385.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.007178, allocations: 20.06 kB / 385.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.007198, allocations: 16.38 kB / 385.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.007208, allocations: 15.88 kB / 385.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.007373, allocations: 135.8 kB / 385.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.008546, allocations: 1.963 MB / 387.8 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.00878, allocations: 281.8 kB / 388 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.894e-05/0.008849, allocations: 101.8 kB / 388.1 MB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.008865, allocations: 4 kB / 388.1 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.008887, allocations: 53.33 kB / 388.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.753e-06/0.008889, allocations: 0 / 388.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003158/0.009205, allocations: 209.2 kB / 388.4 MB, free: 8.105 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.009271, allocations: 213.9 kB / 388.6 MB, free: 7.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.009428, allocations: 318.1 kB / 388.9 MB, free: 7.523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.009441, allocations: 29.7 kB / 388.9 MB, free: 7.488 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.009552, allocations: 298.7 kB / 389.2 MB, free: 7.188 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.637e-05/0.009608, allocations: 127 kB / 389.4 MB, free: 7.062 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/0.009694, allocations: 99.95 kB / 389.5 MB, free: 6.953 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.009828, allocations: 0.5118 MB / 390 MB, free: 6.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.144e-05/0.0099, allocations: 53.27 kB / 390 MB, free: 6.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.01015, allocations: 0.5158 MB / 390.5 MB, free: 5.645 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.01053, allocations: 0.6361 MB / 391.2 MB, free: 4.789 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.01054, allocations: 4 kB / 391.2 MB, free: 4.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004352/0.01097, allocations: 484.7 kB / 391.6 MB, free: 4.305 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.01099, allocations: 8 kB / 391.7 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.011, allocations: 12.84 kB / 391.7 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.01102, allocations: 16 kB / 391.7 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.01124, allocations: 147.8 kB / 391.8 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.01126, allocations: 23.92 kB / 391.8 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.01139, allocations: 63.56 kB / 391.9 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.01141, allocations: 32 kB / 391.9 MB, free: 4.008 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 9.532e-05/0.01151, allocations: 212.2 kB / 392.1 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.01159, allocations: 43.75 kB / 392.2 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/0.01164, allocations: 33.8 kB / 392.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.01164, allocations: 4 kB / 392.2 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.01165, allocations: 4 kB / 392.2 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.01165, allocations: 4 kB / 392.2 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000878/0.01253, allocations: 0.6441 MB / 392.9 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.01253, allocations: 4.625 kB / 392.9 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.01283, allocations: 91.88 kB / 393 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.01284, allocations: 4 kB / 393 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.01286, allocations: 8 kB / 393 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.01287, allocations: 8 kB / 393 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.01287, allocations: 3.938 kB / 393 MB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005206/0.01339, allocations: 1.095 MB / 394.1 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.01343, allocations: 31.75 kB / 394.1 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.01346, allocations: 12 kB / 394.1 MB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/0.01382, allocations: 11.98 kB / 394.1 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.01387, allocations: 19.91 kB / 394.2 MB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.01389, allocations: 12 kB / 394.2 MB, free: 1.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001098/0.014, allocations: 203 kB / 394.4 MB, free: 1.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.014, allocations: 4 kB / 394.4 MB, free: 1.473 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004855/0.01448, allocations: 99.83 kB / 394.5 MB, free: 1.375 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.0001196/0.0146, allocations: 108.6 kB / 394.6 MB, free: 1.258 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003124/0.01491, allocations: 243.5 kB / 394.8 MB, free: 1.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01492, allocations: 0 / 394.8 MB, free: 1.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.062e-05/0.01499, allocations: 75.52 kB / 394.9 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006002/0.01559, allocations: 77.5 kB / 395 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.01699, allocations: 1.203 MB / 396.2 MB, free: 15.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.082e-05/0.01708, allocations: 104.6 kB / 396.3 MB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000109/0.01719, allocations: 39.28 kB / 396.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.053e-05/0.01724, allocations: 32.48 kB / 396.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.133e-06/0.01724, allocations: 0 / 396.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of Templates: time 0.005073/0.02232, allocations: 2.893 MB / 399.2 MB, free: 12.57 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.1791874947957695]