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.00137/0.00137, allocations: 113 kB / 17.98 MB, free: 5.348 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.0014/0.0014, allocations: 189.4 kB / 18.9 MB, free: 4.43 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.329/1.329, allocations: 222.9 MB / 242.6 MB, free: 15.44 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.204/0.204, allocations: 44.18 MB / 336.9 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.84 kB / 408.5 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1061, allocations: 60.83 MB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004051/0.1102, allocations: 2.867 MB / 472.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.1115, allocations: 0.6973 MB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.1117, allocations: 11.94 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.1119, allocations: 39.7 kB / 473 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.1122, allocations: 103.1 kB / 473.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.1125, allocations: 75.88 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.1129, allocations: 430 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.1131, allocations: 145.5 kB / 473.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.1133, allocations: 167.4 kB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.1136, allocations: 179.2 kB / 474.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.953e-05/0.1136, allocations: 32 kB / 474.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.612e-05/0.1137, allocations: 32 kB / 474.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.448e-05/0.1137, allocations: 83.64 kB / 474.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.1139, allocations: 195.1 kB / 474.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.1142, allocations: 323.5 kB / 474.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1142, allocations: 0 / 474.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1142, allocations: 0 / 474.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1143, allocations: 0 / 474.7 MB, free: 9.367 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.0008836/0.1151, allocations: 0.6474 MB / 475.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1152, allocations: 15.97 kB / 475.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.1153, allocations: 40.47 kB / 475.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.1156, allocations: 272.4 kB / 475.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.1156, allocations: 29.38 kB / 475.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/0.1157, allocations: 52.27 kB / 475.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.1163, allocations: 394.5 kB / 476.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.1163, allocations: 7.844 kB / 476.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.271e-05/0.1164, allocations: 16 kB / 476.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.1164, allocations: 12 kB / 476.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.1168, allocations: 219.7 kB / 476.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.1189, allocations: 1.719 MB / 478.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004126/0.1194, allocations: 266.4 kB / 478.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.1195, allocations: 98 kB / 478.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.1196, allocations: 4.234 kB / 478.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.1196, allocations: 42.5 kB / 478.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.472e-06/0.1196, allocations: 4 kB / 478.5 MB, free: 5.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006394/0.1202, allocations: 261.1 kB / 478.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.843e-05/0.1203, allocations: 214 kB / 479 MB, free: 4.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.1206, allocations: 278.9 kB / 479.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.1206, allocations: 29.7 kB / 479.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.1208, allocations: 239.2 kB / 479.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.24e-05/0.1209, allocations: 126.2 kB / 479.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.121, allocations: 98.25 kB / 479.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1211, allocations: 354.7 kB / 480.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.1213, allocations: 93.27 kB / 480.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.1217, allocations: 432.8 kB / 480.6 MB, free: 2.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.1223, allocations: 0.5585 MB / 481.2 MB, free: 2.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.1223, allocations: 8 kB / 481.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007664/0.1231, allocations: 0.5325 MB / 481.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1232, allocations: 8 kB / 481.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.1232, allocations: 12 kB / 481.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.1232, allocations: 16 kB / 481.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004055/0.1236, allocations: 143.8 kB / 481.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-05/0.1236, allocations: 23.92 kB / 481.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.1239, allocations: 63.38 kB / 482 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.124, allocations: 32 kB / 482 MB, free: 1.34 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.000156/0.1241, allocations: 185.6 kB / 482.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.1243, allocations: 36.05 kB / 482.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.134e-05/0.1243, allocations: 37.78 kB / 482.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1244, allocations: 4 kB / 482.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1244, allocations: 0 / 482.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1244, allocations: 7.984 kB / 482.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.1255, allocations: 0.652 MB / 482.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.1255, allocations: 4 kB / 482.9 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.126, allocations: 87.89 kB / 483 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.126, allocations: 0 / 483 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.126, allocations: 12 kB / 483 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.126, allocations: 7.922 kB / 483 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.126, allocations: 4 kB / 483 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.1267, allocations: 0.8336 MB / 483.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.694e-05/0.1268, allocations: 112.8 kB / 484 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.317e-05/0.1269, allocations: 8 kB / 484 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.1272, allocations: 11.94 kB / 484 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.1273, allocations: 23.97 kB / 484 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.1273, allocations: 15.92 kB / 484 MB, free: 15.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.1274, allocations: 182 kB / 484.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1274, allocations: 0 / 484.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006836/0.1281, allocations: 103.8 kB / 484.3 MB, free: 14.91 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.0001207/0.1283, allocations: 113.3 kB / 484.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005046/0.1288, allocations: 298.1 kB / 484.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1288, allocations: 0 / 484.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.1289, allocations: 88.59 kB / 484.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.13, allocations: 76.7 kB / 484.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.1322, allocations: 1.691 MB / 486.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.1326, allocations: 0.8028 MB / 487.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.918e-05/0.1327, allocations: 31.38 kB / 487.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1327, allocations: 8 kB / 487.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of Templates: time 0.006293/0.139, allocations: 4.109 MB / 491.5 MB, free: 7.617 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