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.001124/0.001124, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 74.98 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1143, allocations: 62.45 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003872/0.1182, allocations: 2.844 MB / 484.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1195, allocations: 0.7789 MB / 485.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1197, allocations: 11.94 kB / 485.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.1199, allocations: 55.44 kB / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.1201, allocations: 126.8 kB / 485.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.1204, allocations: 103.9 kB / 485.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003964/0.1209, allocations: 441.8 kB / 485.8 MB, free: 160 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002418/0.1211, allocations: 149.5 kB / 485.9 MB, free: 12 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.1214, allocations: 167.4 kB / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1216, allocations: 179.2 kB / 486.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.677e-05/0.1216, allocations: 32 kB / 486.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.151e-05/0.1217, allocations: 36 kB / 486.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.021e-05/0.1218, allocations: 83.69 kB / 486.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.122, allocations: 191.1 kB / 486.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.1223, allocations: 438.4 kB / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1224, allocations: 0 / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1224, allocations: 0 / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1224, allocations: 4 kB / 487.1 MB, free: 14.9 MB / 366.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.0008395/0.1232, allocations: 0.6473 MB / 487.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.1233, allocations: 12.03 kB / 487.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002316/0.1235, allocations: 60.44 kB / 487.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.1238, allocations: 292.4 kB / 488.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.1239, allocations: 25.38 kB / 488.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/0.1239, allocations: 40.38 kB / 488.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.1245, allocations: 398.4 kB / 488.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.1245, allocations: 7.844 kB / 488.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.1246, allocations: 16 kB / 488.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.1246, allocations: 12 kB / 488.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.125, allocations: 215.7 kB / 488.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.127, allocations: 1.73 MB / 490.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.1274, allocations: 262.4 kB / 490.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1276, allocations: 98.02 kB / 490.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.1276, allocations: 8 kB / 490.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.1277, allocations: 38.5 kB / 490.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.1277, allocations: 0 / 490.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006039/0.1283, allocations: 269.1 kB / 491.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.629e-05/0.1284, allocations: 209.6 kB / 491.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.1286, allocations: 275.2 kB / 491.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1286, allocations: 29.7 kB / 491.6 MB, free: 9.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1288, allocations: 243.4 kB / 491.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.623e-05/0.1289, allocations: 118.7 kB / 492 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.129, allocations: 98.27 kB / 492.1 MB, free: 9.449 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1291, allocations: 350.7 kB / 492.4 MB, free: 9.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.1293, allocations: 105.2 kB / 492.5 MB, free: 8.996 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.1297, allocations: 424.8 kB / 493 MB, free: 8.418 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.1303, allocations: 0.5745 MB / 493.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1303, allocations: 4 kB / 493.5 MB, free: 7.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007595/0.1311, allocations: 0.5201 MB / 494.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1311, allocations: 12.91 kB / 494.1 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.1311, allocations: 12 kB / 494.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.1312, allocations: 19.94 kB / 494.1 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.1316, allocations: 147.8 kB / 494.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.122e-05/0.1316, allocations: 27.86 kB / 494.3 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.1319, allocations: 67.36 kB / 494.3 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.1319, allocations: 32 kB / 494.4 MB, free: 6.84 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.0001483/0.1321, allocations: 173.5 kB / 494.5 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1322, allocations: 31.62 kB / 494.6 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.334e-05/0.1323, allocations: 45.81 kB / 494.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1323, allocations: 11.94 kB / 494.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1323, allocations: 0 / 494.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1323, allocations: 4 kB / 494.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.1335, allocations: 0.648 MB / 495.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/0.1335, allocations: 4 kB / 495.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004147/0.1339, allocations: 91.94 kB / 495.4 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1339, allocations: 8 kB / 495.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.134, allocations: 8 kB / 495.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.134, allocations: 7.938 kB / 495.4 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.134, allocations: 0 / 495.4 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006491/0.1346, allocations: 0.8307 MB / 496.2 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.1347, allocations: 108.8 kB / 496.3 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.1348, allocations: 8 kB / 496.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.1351, allocations: 19.94 kB / 496.4 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.689e-05/0.1351, allocations: 19.97 kB / 496.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1352, allocations: 8 kB / 496.4 MB, free: 4.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.1353, allocations: 186 kB / 496.6 MB, free: 4.523 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1353, allocations: 3.938 kB / 496.6 MB, free: 4.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006621/0.136, allocations: 103.8 kB / 496.7 MB, free: 4.418 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 9.974e-05/0.1361, allocations: 111.2 kB / 496.8 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.1366, allocations: 294 kB / 497.1 MB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1366, allocations: 0 / 497.1 MB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.1367, allocations: 95.95 kB / 497.2 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.1376, allocations: 80.27 kB / 497.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.1395, allocations: 1.538 MB / 498.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.1398, allocations: 0.7989 MB / 499.6 MB, free: 1.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.14, allocations: 43.27 kB / 499.6 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.042e-05/0.14, allocations: 27.44 kB / 499.6 MB, free: 1.363 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.14, allocations: 0 / 499.6 MB, free: 1.363 MB / 366.1 MB Notification: Performance of Templates: time 0.006202/0.1462, allocations: 2.931 MB / 0.4908 GB, free: 14.45 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 -s cvode -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