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.00235/0.00235, allocations: 116.3 kB / 18.45 MB, free: 4.594 MB / 14.72 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.002602/0.002602, allocations: 209 kB / 21.41 MB, free: 1.645 MB / 14.72 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.514/1.514, allocations: 227.4 MB / 251.6 MB, free: 68 kB / 190.1 MB " [Timeout remaining time 178] 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.2457/0.2457, allocations: 46.17 MB / 351.1 MB, free: 14.29 MB / 286.1 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 0.002271/0.002271, allocations: 81.3 kB / 490.2 MB, free: 28.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.129, allocations: 62.46 MB / 0.5397 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004341/0.1333, allocations: 2.849 MB / 0.5425 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.135, allocations: 0.779 MB / 0.5432 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.1353, allocations: 8 kB / 0.5432 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.1355, allocations: 55.39 kB / 0.5433 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003058/0.1358, allocations: 130.8 kB / 0.5434 GB, free: 412 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.1363, allocations: 99.86 kB / 0.5435 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006085/0.1369, allocations: 446 kB / 0.5439 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.1372, allocations: 141.5 kB / 0.5441 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.1376, allocations: 179.3 kB / 0.5442 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.1379, allocations: 175.2 kB / 0.5444 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.76e-05/0.1379, allocations: 32 kB / 0.5444 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.1381, allocations: 36 kB / 0.5445 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.601e-05/0.1382, allocations: 83.69 kB / 0.5445 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.1384, allocations: 199.1 kB / 0.5447 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005507/0.1389, allocations: 442.1 kB / 0.5452 GB, free: 14.6 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.139, allocations: 0 / 0.5452 GB, free: 14.6 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.139, allocations: 0 / 0.5452 GB, free: 14.6 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.139, allocations: 0 / 0.5452 GB, free: 14.6 MB / 414.1 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.001012/0.14, allocations: 0.6663 MB / 0.5458 GB, free: 13.88 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.14, allocations: 12.03 kB / 0.5458 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.1403, allocations: 56.69 kB / 0.5459 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.1408, allocations: 279.8 kB / 0.5461 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.1408, allocations: 29.38 kB / 0.5462 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.178e-05/0.1409, allocations: 44.31 kB / 0.5462 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007324/0.1416, allocations: 394.5 kB / 0.5466 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.1417, allocations: 19.81 kB / 0.5466 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.1417, allocations: 16 kB / 0.5466 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.1418, allocations: 12 kB / 0.5466 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.1422, allocations: 219.7 kB / 0.5468 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.1446, allocations: 1.708 MB / 0.5485 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.1451, allocations: 262.4 kB / 0.5488 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001894/0.1453, allocations: 106 kB / 0.5489 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.1453, allocations: 240 / 0.5489 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.223e-05/0.1454, allocations: 50.5 kB / 0.5489 GB, free: 10.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.362e-06/0.1454, allocations: 0 / 0.5489 GB, free: 10.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.000704/0.1461, allocations: 261.2 kB / 0.5492 GB, free: 10.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.1463, allocations: 222 kB / 0.5494 GB, free: 9.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.1466, allocations: 279.2 kB / 0.5496 GB, free: 9.621 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.1466, allocations: 25.7 kB / 0.5497 GB, free: 9.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1468, allocations: 244 kB / 0.5499 GB, free: 9.348 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.1469, allocations: 130.9 kB / 0.55 GB, free: 9.219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.1471, allocations: 98.3 kB / 0.5501 GB, free: 9.117 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1472, allocations: 346.7 kB / 0.5504 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.1475, allocations: 101.2 kB / 0.5505 GB, free: 8.672 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.1479, allocations: 428.8 kB / 0.5509 GB, free: 8.094 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007292/0.1487, allocations: 0.5702 MB / 0.5515 GB, free: 7.363 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1487, allocations: 4 kB / 0.5515 GB, free: 7.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009001/0.1496, allocations: 0.5291 MB / 0.552 GB, free: 6.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.1496, allocations: 12 kB / 0.552 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.1497, allocations: 12 kB / 0.552 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.1497, allocations: 12 kB / 0.5521 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.1501, allocations: 155.7 kB / 0.5522 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.559e-05/0.1502, allocations: 23.88 kB / 0.5522 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.1504, allocations: 63.55 kB / 0.5523 GB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.1505, allocations: 40.25 kB / 0.5523 GB, free: 6.512 MB / 414.1 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.0001822/0.1507, allocations: 177.5 kB / 0.5525 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.1508, allocations: 31.81 kB / 0.5525 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.1509, allocations: 33.83 kB / 0.5526 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1509, allocations: 4 kB / 0.5526 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1509, allocations: 4 kB / 0.5526 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.1509, allocations: 7.984 kB / 0.5526 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.1522, allocations: 0.6514 MB / 0.5532 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1522, allocations: 0.625 kB / 0.5532 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.1527, allocations: 83.95 kB / 0.5533 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.1527, allocations: 4 kB / 0.5533 GB, free: 5.449 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.1527, allocations: 19.92 kB / 0.5533 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.1527, allocations: 7.938 kB / 0.5533 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1527, allocations: 7.938 kB / 0.5533 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008113/0.1536, allocations: 0.831 MB / 0.5541 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.487e-05/0.1537, allocations: 108.9 kB / 0.5542 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.1537, allocations: 8 kB / 0.5543 GB, free: 4.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.154, allocations: 15.92 kB / 0.5543 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.589e-05/0.1541, allocations: 23.97 kB / 0.5543 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.1541, allocations: 12 kB / 0.5543 GB, free: 4.367 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.1543, allocations: 190 kB / 0.5545 GB, free: 4.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1543, allocations: 0 / 0.5545 GB, free: 4.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006934/0.155, allocations: 95.89 kB / 0.5546 GB, free: 4.086 MB / 414.1 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.0001516/0.1552, allocations: 107.1 kB / 0.5547 GB, free: 3.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005465/0.1557, allocations: 301.8 kB / 0.555 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1557, allocations: 0.75 kB / 0.555 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.1559, allocations: 95.95 kB / 0.5551 GB, free: 3.582 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009624/0.1569, allocations: 78.47 kB / 0.5551 GB, free: 3.508 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.1593, allocations: 1.552 MB / 0.5567 GB, free: 1.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.1598, allocations: 0.8026 MB / 0.5574 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.1599, allocations: 47.25 kB / 0.5575 GB, free: 1.031 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.754e-05/0.16, allocations: 27.44 kB / 0.5575 GB, free: 1.004 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.16, allocations: 0 / 0.5575 GB, free: 1.004 MB / 414.1 MB Notification: Performance of Templates: time 0.007235/0.1672, allocations: 3.007 MB / 0.5604 GB, free: 14.02 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.019617443904281]