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.0008982/0.0008981, allocations: 97.03 kB / 18.01 MB, free: 5.734 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.0009665/0.0009666, allocations: 178.8 kB / 18.91 MB, free: 4.871 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.345/1.345, allocations: 223.3 MB / 243 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.215/0.215, allocations: 44.25 MB / 338.3 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003039, allocations: 10.78 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 61.93 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003418/0.1154, allocations: 2.492 MB / 475.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1168, allocations: 0.6817 MB / 476.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.1171, allocations: 11.94 kB / 476.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.1174, allocations: 43.69 kB / 476.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.1178, allocations: 107.1 kB / 476.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.1181, allocations: 75.92 kB / 476.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005789/0.1187, allocations: 414 kB / 476.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/0.119, allocations: 109.1 kB / 476.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002783/0.1193, allocations: 143.4 kB / 477 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.1196, allocations: 167.2 kB / 477.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.292e-05/0.1196, allocations: 20 kB / 477.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.431e-05/0.1197, allocations: 20 kB / 477.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.139e-05/0.1198, allocations: 63.7 kB / 477.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002856/0.1201, allocations: 204.8 kB / 477.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.1204, allocations: 311.4 kB / 477.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1204, allocations: 0 / 477.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1205, allocations: 4 kB / 477.7 MB, free: 8.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.1205, allocations: 0 / 477.7 MB, free: 8.477 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.0009478/0.1214, allocations: 0.5812 MB / 478.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1215, allocations: 8.031 kB / 478.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.753e-05/0.1216, allocations: 40.47 kB / 478.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.1219, allocations: 288.4 kB / 478.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.122, allocations: 29.38 kB / 478.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.1221, allocations: 40.31 kB / 478.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006721/0.1227, allocations: 398.5 kB / 479.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.1228, allocations: 7.906 kB / 479.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.1228, allocations: 16 kB / 479.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1228, allocations: 8 kB / 479.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004516/0.1233, allocations: 227.7 kB / 479.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.1256, allocations: 1.738 MB / 481.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000426/0.1261, allocations: 270.2 kB / 481.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.1263, allocations: 94.08 kB / 481.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1263, allocations: 8 kB / 481.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.1263, allocations: 42.5 kB / 481.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.1263, allocations: 0 / 481.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006909/0.127, allocations: 277.7 kB / 481.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.673e-05/0.1272, allocations: 213.6 kB / 482 MB, free: 3.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.1274, allocations: 279 kB / 482.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1275, allocations: 33.64 kB / 482.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1276, allocations: 239.4 kB / 482.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.326e-05/0.1277, allocations: 114.4 kB / 482.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.1278, allocations: 49.69 kB / 482.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1279, allocations: 350.7 kB / 483 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1281, allocations: 97.27 kB / 483.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.1286, allocations: 440.8 kB / 483.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007032/0.1293, allocations: 0.5784 MB / 484.1 MB, free: 1.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.1293, allocations: 4 kB / 484.1 MB, free: 1.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008775/0.1302, allocations: 0.5319 MB / 484.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.1303, allocations: 11.38 kB / 484.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.588e-05/0.1303, allocations: 12 kB / 484.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.1303, allocations: 20.06 kB / 484.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004338/0.1308, allocations: 151.8 kB / 484.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.917e-05/0.1308, allocations: 19.92 kB / 484.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.1311, allocations: 67.34 kB / 484.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.1312, allocations: 35.98 kB / 485 MB, free: 0.4922 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.0001739/0.1314, allocations: 177.5 kB / 485.2 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.1315, allocations: 31.72 kB / 485.2 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.268e-05/0.1316, allocations: 41.78 kB / 485.2 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1316, allocations: 4 kB / 485.2 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.1316, allocations: 0 / 485.2 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1316, allocations: 4 kB / 485.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.1329, allocations: 0.6513 MB / 485.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1329, allocations: 4.062 kB / 485.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.1333, allocations: 91.89 kB / 486 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.1333, allocations: 4 kB / 486 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.1334, allocations: 11.98 kB / 486 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.1334, allocations: 11.88 kB / 486 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1334, allocations: 0 / 486 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007809/0.1342, allocations: 0.8453 MB / 486.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/0.1343, allocations: 108.8 kB / 487 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.1343, allocations: 8 kB / 487 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003434/0.1347, allocations: 20.11 kB / 487 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.19e-05/0.1347, allocations: 27.92 kB / 487 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.1348, allocations: 11.97 kB / 487 MB, free: 14.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000168/0.1349, allocations: 186 kB / 487.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1349, allocations: 0 / 487.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007093/0.1357, allocations: 99.84 kB / 487.3 MB, free: 14.05 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.0001212/0.1358, allocations: 107.7 kB / 487.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005562/0.1364, allocations: 293.8 kB / 487.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1364, allocations: 0 / 487.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.1366, allocations: 103.8 kB / 487.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.1376, allocations: 72.23 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.1402, allocations: 1.955 MB / 489.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.1406, allocations: 0.7953 MB / 490.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.802e-05/0.1407, allocations: 31.44 kB / 490.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of SimCode: time 2.275e-06/0.1407, allocations: 3.938 kB / 490.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Templates: time 0.006555/0.1472, allocations: 4.06 MB / 494.7 MB, free: 6.555 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