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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00163/0.001636, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.092/2.092, allocations: 227.4 MB / 247.1 MB, free: 10.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2481/0.2481, allocations: 46.1 MB / 344.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 76.69 kB / 417.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1213, allocations: 62.45 MB / 480.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004936/0.1262, allocations: 2.883 MB / 483 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.128, allocations: 0.7673 MB / 483.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005186/0.1286, allocations: 8 kB / 483.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.129, allocations: 43.62 kB / 483.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006061/0.1296, allocations: 107.1 kB / 484 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004963/0.1302, allocations: 87.92 kB / 484 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007227/0.1309, allocations: 441.9 kB / 484.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.1312, allocations: 145.5 kB / 484.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004172/0.1317, allocations: 167.4 kB / 484.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003238/0.132, allocations: 175.2 kB / 484.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.59e-05/0.1321, allocations: 32 kB / 485 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.1322, allocations: 39.94 kB / 485 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-05/0.1323, allocations: 83.69 kB / 485.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.1326, allocations: 199.1 kB / 485.3 MB, free: 456 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.133, allocations: 327.5 kB / 485.6 MB, free: 128 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.133, allocations: 0 / 485.6 MB, free: 128 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.133, allocations: 4 kB / 485.6 MB, free: 124 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.133, allocations: 0 / 485.6 MB, free: 124 kB / 350.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.001102/0.1341, allocations: 0.6513 MB / 486.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1342, allocations: 15.97 kB / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.1345, allocations: 56.45 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.1348, allocations: 279.5 kB / 486.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.1349, allocations: 33.38 kB / 486.6 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.547e-05/0.1349, allocations: 44.36 kB / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006875/0.1356, allocations: 398.3 kB / 487.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.1357, allocations: 11.89 kB / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.1357, allocations: 16 kB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.1357, allocations: 8 kB / 487.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004828/0.1362, allocations: 223.6 kB / 487.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.1386, allocations: 1.73 MB / 489.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/0.1391, allocations: 262.3 kB / 489.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.1393, allocations: 94.06 kB / 489.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.1393, allocations: 11.98 kB / 489.4 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.1393, allocations: 42.5 kB / 489.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.695e-06/0.1394, allocations: 0 / 489.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007031/0.1401, allocations: 261.3 kB / 489.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1402, allocations: 217.6 kB / 489.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.1405, allocations: 279.2 kB / 490.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.1406, allocations: 29.7 kB / 490.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.1407, allocations: 239.5 kB / 490.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.518e-05/0.1408, allocations: 118.4 kB / 490.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.141, allocations: 102.3 kB / 490.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1411, allocations: 350.7 kB / 491 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.1414, allocations: 93.27 kB / 491.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.1418, allocations: 428.8 kB / 491.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007131/0.1425, allocations: 0.5702 MB / 492.1 MB, free: 8.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.1426, allocations: 4 kB / 492.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00093/0.1435, allocations: 0.5285 MB / 492.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.1435, allocations: 8 kB / 492.6 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.1436, allocations: 12 kB / 492.7 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.1436, allocations: 16 kB / 492.7 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.1441, allocations: 144.5 kB / 492.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.458e-05/0.1441, allocations: 27.92 kB / 492.8 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.1444, allocations: 75.3 kB / 492.9 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.1445, allocations: 32 kB / 492.9 MB, free: 8.043 MB / 366.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.0002015/0.1447, allocations: 177.5 kB / 493.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.1449, allocations: 35.66 kB / 493.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.438e-05/0.145, allocations: 34.33 kB / 493.2 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.145, allocations: 4 kB / 493.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.145, allocations: 8 kB / 493.2 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.145, allocations: 3.984 kB / 493.2 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.1464, allocations: 0.6475 MB / 493.8 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1464, allocations: 4 kB / 493.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/0.1469, allocations: 87.89 kB / 493.9 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.1469, allocations: 4 kB / 493.9 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.1469, allocations: 19.98 kB / 494 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/0.147, allocations: 7.938 kB / 494 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.147, allocations: 4 kB / 494 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008206/0.1478, allocations: 0.8229 MB / 494.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.1479, allocations: 104.8 kB / 494.9 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.094e-05/0.148, allocations: 16 kB / 494.9 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/0.1484, allocations: 11.92 kB / 494.9 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.39e-05/0.1485, allocations: 31.91 kB / 495 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.1485, allocations: 12 kB / 495 MB, free: 5.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.1487, allocations: 182 kB / 495.1 MB, free: 5.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1487, allocations: 0 / 495.1 MB, free: 5.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008071/0.1495, allocations: 103.8 kB / 495.2 MB, free: 5.621 MB / 366.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.0001423/0.1496, allocations: 107.1 kB / 495.4 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.1503, allocations: 310.4 kB / 495.7 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1503, allocations: 0 / 495.7 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.1505, allocations: 87.83 kB / 495.7 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.1516, allocations: 84.34 kB / 495.8 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.1542, allocations: 1.7 MB / 497.5 MB, free: 3.281 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.1546, allocations: 0.795 MB / 498.3 MB, free: 2.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.664e-05/0.1548, allocations: 39.36 kB / 498.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1548, allocations: 0 / 498.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of Templates: time 0.008246/0.163, allocations: 4.146 MB / 0.4907 GB, free: 14.29 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches