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.0009801/0.0009801, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0008975/0.0008975, allocations: 160.5 kB / 24.55 MB, free: 16 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.9948/0.9948, allocations: 177 MB / 204.8 MB, free: 5.59 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.2804/0.2804, allocations: 34.86 MB / 296.3 MB, free: 492 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 2.084e-06/2.084e-06, allocations: 0 / 378.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.143e-05/3.351e-05, allocations: 3.156 kB / 378.8 MB, free: 2.082 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004822/0.004855, allocations: 2.858 MB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.006587, allocations: 0.7633 MB / 382.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003204/0.006907, allocations: 11.88 kB / 382.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.007132, allocations: 59.38 kB / 382.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000313/0.007445, allocations: 134.8 kB / 382.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.007843, allocations: 111.7 kB / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004338/0.008277, allocations: 457.6 kB / 383.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.008488, allocations: 98.17 kB / 383.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003961/0.008884, allocations: 263.4 kB / 383.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.009049, allocations: 131.6 kB / 383.6 MB, free: 13.19 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.959e-05/0.009088, allocations: 35.94 kB / 383.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.171e-05/0.00916, allocations: 36 kB / 383.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.144e-05/0.009202, allocations: 75.73 kB / 383.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.77e-05/0.009299, allocations: 139.7 kB / 383.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.009617, allocations: 294.8 kB / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.009622, allocations: 0 / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.009623, allocations: 0 / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.009631, allocations: 0 / 384.2 MB, free: 12.62 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.0006666/0.0103, allocations: 0.6793 MB / 384.9 MB, free: 11.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.01033, allocations: 8.031 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.01053, allocations: 92.64 kB / 385 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.01082, allocations: 229.4 kB / 385.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.01085, allocations: 29.38 kB / 385.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.0109, allocations: 40.33 kB / 385.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.0113, allocations: 364.8 kB / 385.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.01132, allocations: 12.08 kB / 385.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.01134, allocations: 16.38 kB / 385.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.01136, allocations: 11.94 kB / 385.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.01156, allocations: 143.8 kB / 385.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.01303, allocations: 1.963 MB / 387.8 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.0133, allocations: 285.7 kB / 388 MB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.734e-05/0.01338, allocations: 97.84 kB / 388.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.0134, allocations: 8 kB / 388.1 MB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.01343, allocations: 49.33 kB / 388.2 MB, free: 8.285 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.853e-06/0.01343, allocations: 0 / 388.2 MB, free: 8.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003687/0.0138, allocations: 205.2 kB / 388.4 MB, free: 8.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.852e-05/0.01388, allocations: 217.6 kB / 388.6 MB, free: 7.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.01406, allocations: 314.1 kB / 388.9 MB, free: 7.496 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.01408, allocations: 29.7 kB / 388.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.01419, allocations: 302.7 kB / 389.2 MB, free: 7.156 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.01426, allocations: 123.4 kB / 389.3 MB, free: 7.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.01434, allocations: 108 kB / 389.5 MB, free: 6.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.01447, allocations: 0.5118 MB / 390 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.774e-05/0.01455, allocations: 53.28 kB / 390 MB, free: 6.344 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.01482, allocations: 0.5158 MB / 390.5 MB, free: 5.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004223/0.01524, allocations: 0.6279 MB / 391.2 MB, free: 4.762 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.01525, allocations: 4 kB / 391.2 MB, free: 4.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004745/0.01572, allocations: 485.8 kB / 391.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.01574, allocations: 10.66 kB / 391.7 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.01575, allocations: 15.98 kB / 391.7 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.01578, allocations: 16 kB / 391.7 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.01603, allocations: 151.7 kB / 391.8 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.01605, allocations: 19.94 kB / 391.8 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.01619, allocations: 59.56 kB / 391.9 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.01621, allocations: 40.3 kB / 391.9 MB, free: 3.973 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.0001157/0.01633, allocations: 208.3 kB / 392.2 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.533e-05/0.01642, allocations: 43.75 kB / 392.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.01647, allocations: 33.8 kB / 392.2 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.01648, allocations: 4 kB / 392.2 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.01649, allocations: 4 kB / 392.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.01649, allocations: 0 / 392.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.0172, allocations: 0.6563 MB / 392.9 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.01721, allocations: 4 kB / 392.9 MB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.01744, allocations: 87.95 kB / 393 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.01745, allocations: 3.938 kB / 393 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.01747, allocations: 12 kB / 393 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.01747, allocations: 4 kB / 393 MB, free: 2.855 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.01748, allocations: 3.938 kB / 393 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005184/0.01799, allocations: 1.091 MB / 394.1 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.371e-05/0.01802, allocations: 23.81 kB / 394.1 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.01805, allocations: 15.98 kB / 394.1 MB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.01821, allocations: 12 kB / 394.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.01826, allocations: 27.84 kB / 394.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.01827, allocations: 11.98 kB / 394.2 MB, free: 1.637 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.991e-05/0.01837, allocations: 199 kB / 394.4 MB, free: 1.445 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01837, allocations: 0 / 394.4 MB, free: 1.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004432/0.01881, allocations: 103.8 kB / 394.5 MB, free: 1.344 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.0001051/0.01892, allocations: 104.6 kB / 394.6 MB, free: 1.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002867/0.0192, allocations: 243.7 kB / 394.8 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.0192, allocations: 0 / 394.8 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.148e-05/0.01928, allocations: 79.77 kB / 394.9 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.01986, allocations: 77 kB / 395 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.02122, allocations: 1.207 MB / 396.2 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.529e-05/0.02132, allocations: 104.6 kB / 396.3 MB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.02142, allocations: 47.25 kB / 396.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.02147, allocations: 28.5 kB / 396.4 MB, free: 15.36 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.02147, allocations: 0 / 396.4 MB, free: 15.36 MB / 378.7 MB Notification: Performance of Templates: time 0.00526/0.02673, allocations: 3.042 MB / 399.4 MB, free: 12.38 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.1585982590913773]