Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 110.1 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2122/0.2122, allocations: 44.18 MB / 337.3 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 63.31 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1195, allocations: 60.83 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004449/0.124, allocations: 2.809 MB / 472.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.1255, allocations: 0.7011 MB / 473.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/0.1258, allocations: 15.94 kB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.1261, allocations: 51.45 kB / 473.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.1266, allocations: 122.8 kB / 473.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.1269, allocations: 91.88 kB / 473.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005734/0.1275, allocations: 437.9 kB / 474.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002902/0.1278, allocations: 137.5 kB / 474.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.1281, allocations: 171.4 kB / 474.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.1284, allocations: 171.2 kB / 474.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.041e-05/0.1285, allocations: 36 kB / 474.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.289e-05/0.1286, allocations: 32 kB / 474.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.178e-05/0.1287, allocations: 75.7 kB / 474.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002222/0.1289, allocations: 207 kB / 475 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004385/0.1294, allocations: 418.8 kB / 475.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1294, allocations: 0 / 475.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1294, allocations: 0 / 475.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.1294, allocations: 0 / 475.4 MB, free: 8.91 MB / 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.001125/0.1305, allocations: 0.6435 MB / 476 MB, free: 8.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.1306, allocations: 12.03 kB / 476 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.1307, allocations: 40.47 kB / 476.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.131, allocations: 280.4 kB / 476.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.1311, allocations: 29.38 kB / 476.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.1311, allocations: 44.28 kB / 476.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006926/0.1318, allocations: 394.5 kB / 476.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/0.1319, allocations: 11.84 kB / 476.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.1319, allocations: 16 kB / 476.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.132, allocations: 16 kB / 476.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004555/0.1324, allocations: 219.7 kB / 477 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.1351, allocations: 1.715 MB / 478.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.1357, allocations: 274.4 kB / 479 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.1359, allocations: 98.02 kB / 479.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.136, allocations: 4 kB / 479.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.136, allocations: 46.44 kB / 479.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 3.717e-06/0.136, allocations: 4 kB / 479.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007817/0.1368, allocations: 257 kB / 479.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.137, allocations: 214 kB / 479.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003802/0.1374, allocations: 274.9 kB / 479.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.1374, allocations: 33.7 kB / 479.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.1377, allocations: 231.3 kB / 480.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.1378, allocations: 118.5 kB / 480.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.138, allocations: 106.2 kB / 480.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.1382, allocations: 350.7 kB / 480.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.1385, allocations: 89.27 kB / 480.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.1389, allocations: 432.8 kB / 481.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006963/0.1396, allocations: 0.5706 MB / 481.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.1397, allocations: 8 kB / 481.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000922/0.1406, allocations: 0.5285 MB / 482.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.1406, allocations: 11.94 kB / 482.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.1406, allocations: 12 kB / 482.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.1407, allocations: 16 kB / 482.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.1411, allocations: 143.8 kB / 482.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/0.1412, allocations: 23.92 kB / 482.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.1415, allocations: 67.42 kB / 482.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.1415, allocations: 32.22 kB / 482.6 MB, free: 0.8828 MB / 350.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.0002003/0.1417, allocations: 181.5 kB / 482.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.1419, allocations: 31.62 kB / 482.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.983e-05/0.142, allocations: 37.78 kB / 482.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.142, allocations: 4 kB / 482.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.142, allocations: 0 / 482.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.1421, allocations: 7.984 kB / 482.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.1434, allocations: 0.6519 MB / 483.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.1435, allocations: 128 / 483.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004481/0.1439, allocations: 95.89 kB / 483.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.1439, allocations: 0 / 483.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.144, allocations: 15.98 kB / 483.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.144, allocations: 3.938 kB / 483.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.144, allocations: 4 kB / 483.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007861/0.1448, allocations: 0.8299 MB / 484.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.1449, allocations: 116.8 kB / 484.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.145, allocations: 8 kB / 484.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.1453, allocations: 15.92 kB / 484.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.1454, allocations: 19.98 kB / 484.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.1454, allocations: 15.98 kB / 484.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1456, allocations: 189.9 kB / 484.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1456, allocations: 0 / 484.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007884/0.1464, allocations: 103.8 kB / 485 MB, free: 14.44 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.0001291/0.1466, allocations: 106.8 kB / 485.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006164/0.1472, allocations: 305.9 kB / 485.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1472, allocations: 0 / 485.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.1474, allocations: 88.7 kB / 485.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.1485, allocations: 76.47 kB / 485.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.1509, allocations: 1.558 MB / 487.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.1513, allocations: 0.7989 MB / 487.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.768e-05/0.1514, allocations: 35.44 kB / 487.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of SimCode: time 9.71e-07/0.1514, allocations: 4 kB / 487.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Templates: time 0.007323/0.1588, allocations: 4.097 MB / 492 MB, free: 7.305 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches