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.0009326/0.0009326, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.00149/0.00149, allocations: 169.9 kB / 24.92 MB, free: 8.258 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 0.9503/0.9503, allocations: 177 MB / 205.2 MB, free: 5.434 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.294/0.294, allocations: 34.87 MB / 296.6 MB, free: 0.5273 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.383e-06/1.383e-06, allocations: 0 / 325.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.593e-05, allocations: 6.438 kB / 325.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002731/0.002747, allocations: 2.827 MB / 328.7 MB, free: 4.371 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.003792, allocations: 0.7804 MB / 329.5 MB, free: 3.586 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.003923, allocations: 11.88 kB / 329.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.004072, allocations: 59.44 kB / 329.6 MB, free: 3.516 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.004252, allocations: 134.7 kB / 329.7 MB, free: 3.383 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.004516, allocations: 107.8 kB / 329.8 MB, free: 3.277 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000312/0.004828, allocations: 455 kB / 330.3 MB, free: 2.832 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.004986, allocations: 110.7 kB / 330.4 MB, free: 2.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.005255, allocations: 275.4 kB / 330.6 MB, free: 2.449 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.005404, allocations: 123.7 kB / 330.8 MB, free: 2.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.493e-05/0.005439, allocations: 32 kB / 330.8 MB, free: 2.297 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.982e-05/0.005499, allocations: 36 kB / 330.8 MB, free: 2.262 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.005545, allocations: 87.64 kB / 330.9 MB, free: 2.176 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.497e-05/0.00563, allocations: 139.7 kB / 331 MB, free: 2.039 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.005887, allocations: 286.9 kB / 331.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.005889, allocations: 0 / 331.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.00589, allocations: 0 / 331.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.005893, allocations: 0 / 331.3 MB, free: 1.758 MB / 298.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.0005251/0.006418, allocations: 0.5676 MB / 331.9 MB, free: 1.164 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.006448, allocations: 8.031 kB / 331.9 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001793/0.006627, allocations: 76.88 kB / 332 MB, free: 1.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.00689, allocations: 194.7 kB / 332.2 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.006914, allocations: 29.38 kB / 332.2 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.00697, allocations: 44.31 kB / 332.2 MB, free: 0.793 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.007233, allocations: 323.3 kB / 332.6 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.007253, allocations: 20.11 kB / 332.6 MB, free: 436 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.007274, allocations: 16.38 kB / 332.6 MB, free: 420 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.007283, allocations: 11.94 kB / 332.6 MB, free: 408 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.007409, allocations: 108.4 kB / 332.7 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.008503, allocations: 1.442 MB / 334.1 MB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001961/0.008699, allocations: 206.4 kB / 334.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.082e-05/0.00875, allocations: 66.09 kB / 334.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.008769, allocations: 15.94 kB / 334.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.00879, allocations: 38.5 kB / 334.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.674e-06/0.008792, allocations: 3.938 kB / 334.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.0002614/0.009053, allocations: 174 kB / 334.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.009122, allocations: 213.6 kB / 334.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.009266, allocations: 266.7 kB / 335.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.009281, allocations: 29.7 kB / 335.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.335e-05/0.009374, allocations: 235.8 kB / 335.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.656e-05/0.009431, allocations: 123 kB / 335.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.009501, allocations: 102.2 kB / 335.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.035e-05/0.009582, allocations: 346.7 kB / 335.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.144e-05/0.009623, allocations: 37.3 kB / 336 MB, free: 12.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.009799, allocations: 381.1 kB / 336.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003008/0.0101, allocations: 499.8 kB / 336.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.01011, allocations: 4 kB / 336.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003194/0.01043, allocations: 381.7 kB / 337.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.01044, allocations: 12 kB / 337.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.01045, allocations: 8 kB / 337.2 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.01047, allocations: 20.06 kB / 337.2 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.01069, allocations: 143.8 kB / 337.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.0107, allocations: 27.86 kB / 337.4 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.01084, allocations: 63.56 kB / 337.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.01086, allocations: 28 kB / 337.5 MB, free: 10.91 MB / 314.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.225e-05/0.01095, allocations: 157.5 kB / 337.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.63e-05/0.01103, allocations: 27.92 kB / 337.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/0.01107, allocations: 33.8 kB / 337.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.01107, allocations: 12 kB / 337.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.01108, allocations: 0.5 kB / 337.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.01108, allocations: 8.219 kB / 337.7 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.01169, allocations: 463.3 kB / 338.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01169, allocations: 0 / 338.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.01192, allocations: 91.88 kB / 338.3 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.01192, allocations: 4 kB / 338.3 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.01194, allocations: 8 kB / 338.3 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.01194, allocations: 7.984 kB / 338.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.01194, allocations: 0 / 338.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.01228, allocations: 0.7448 MB / 339 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.01231, allocations: 27.75 kB / 339.1 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.01233, allocations: 15.94 kB / 339.1 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.0125, allocations: 8 kB / 339.1 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.01254, allocations: 27.89 kB / 339.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.01254, allocations: 4 kB / 339.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.639e-05/0.0126, allocations: 88.58 kB / 339.2 MB, free: 9.129 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0126, allocations: 0 / 339.2 MB, free: 9.129 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.01301, allocations: 103.9 kB / 339.3 MB, free: 9.027 MB / 314.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 7.106e-05/0.01308, allocations: 80.41 kB / 339.4 MB, free: 8.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.01329, allocations: 224.6 kB / 339.6 MB, free: 8.715 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.0133, allocations: 8 kB / 339.6 MB, free: 8.707 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.666e-05/0.01335, allocations: 74.25 kB / 339.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.01385, allocations: 70.72 kB / 339.8 MB, free: 8.562 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008918/0.01475, allocations: 0.8299 MB / 340.6 MB, free: 7.676 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.869e-05/0.01482, allocations: 108.6 kB / 340.7 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.635e-05/0.01491, allocations: 39.27 kB / 340.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.01502, allocations: 107.3 kB / 340.8 MB, free: 7.406 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01502, allocations: 0 / 340.8 MB, free: 7.406 MB / 314.7 MB Notification: Performance of Templates: time 0.004751/0.01977, allocations: 3.112 MB / 343.9 MB, free: 4.371 MB / 314.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: 2.933341498952359]