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.00137/0.00137, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 46.11 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 78.09 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1086, allocations: 62.44 MB / 480.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003816/0.1124, allocations: 2.861 MB / 483.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1137, allocations: 0.779 MB / 484.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.1139, allocations: 4 kB / 484.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.114, allocations: 55.39 kB / 484.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.1143, allocations: 126.9 kB / 484.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.1146, allocations: 107.8 kB / 484.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003676/0.115, allocations: 429.9 kB / 485 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.1152, allocations: 153.5 kB / 485.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.1155, allocations: 171.4 kB / 485.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.1157, allocations: 175.2 kB / 485.5 MB, free: 460 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.643e-05/0.1157, allocations: 36 kB / 485.6 MB, free: 424 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.1158, allocations: 36 kB / 485.6 MB, free: 388 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.14e-05/0.1159, allocations: 83.69 kB / 485.7 MB, free: 304 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.116, allocations: 195.1 kB / 485.9 MB, free: 108 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1164, allocations: 426.8 kB / 486.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1164, allocations: 0 / 486.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1164, allocations: 0 / 486.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.1165, allocations: 0 / 486.3 MB, free: 15.69 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.0008838/0.1174, allocations: 0.659 MB / 486.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.1174, allocations: 12.03 kB / 486.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.1177, allocations: 56.45 kB / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.1179, allocations: 283.4 kB / 487.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.118, allocations: 29.38 kB / 487.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.118, allocations: 36.38 kB / 487.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.1186, allocations: 398.4 kB / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.1187, allocations: 11.84 kB / 487.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.1187, allocations: 19.94 kB / 487.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1187, allocations: 8 kB / 487.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.1191, allocations: 223.7 kB / 488 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.1211, allocations: 1.722 MB / 489.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.1215, allocations: 262.3 kB / 490 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1217, allocations: 94.08 kB / 490.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.1217, allocations: 11.94 kB / 490.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1218, allocations: 46.55 kB / 490.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.713e-06/0.1218, allocations: 0 / 490.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006572/0.1224, allocations: 257.8 kB / 490.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.1225, allocations: 213.6 kB / 490.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.1228, allocations: 279.6 kB / 490.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.1228, allocations: 33.7 kB / 490.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1229, allocations: 243.5 kB / 491.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.857e-05/0.123, allocations: 118.4 kB / 491.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1231, allocations: 98.25 kB / 491.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1233, allocations: 350.7 kB / 491.7 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1235, allocations: 97.27 kB / 491.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.1238, allocations: 428.8 kB / 492.2 MB, free: 9.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006001/0.1244, allocations: 0.5741 MB / 492.8 MB, free: 8.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.1244, allocations: 4 kB / 492.8 MB, free: 8.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000783/0.1252, allocations: 0.5287 MB / 493.3 MB, free: 7.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1253, allocations: 14.48 kB / 493.3 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.1253, allocations: 12 kB / 493.3 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.1253, allocations: 16 kB / 493.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004095/0.1257, allocations: 147.8 kB / 493.5 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/0.1258, allocations: 19.92 kB / 493.5 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.126, allocations: 63.38 kB / 493.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.1261, allocations: 32 kB / 493.6 MB, free: 7.625 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.0001598/0.1263, allocations: 185.6 kB / 493.8 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.1264, allocations: 31.62 kB / 493.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.1e-05/0.1265, allocations: 37.83 kB / 493.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.1265, allocations: 4 kB / 493.8 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.1265, allocations: 4 kB / 493.9 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1265, allocations: 3.938 kB / 493.9 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.1277, allocations: 0.6555 MB / 494.5 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1278, allocations: 0 / 494.5 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004202/0.1282, allocations: 83.89 kB / 494.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.076e-06/0.1282, allocations: 7.984 kB / 494.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.1282, allocations: 11.98 kB / 494.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.1282, allocations: 7.938 kB / 494.6 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/0.1283, allocations: 11.88 kB / 494.6 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006839/0.1289, allocations: 0.8308 MB / 495.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.129, allocations: 108.8 kB / 495.6 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.587e-05/0.1291, allocations: 8 kB / 495.6 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.1294, allocations: 20.05 kB / 495.6 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.1295, allocations: 19.98 kB / 495.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.1295, allocations: 11.98 kB / 495.6 MB, free: 5.473 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.1297, allocations: 182 kB / 495.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1297, allocations: 4 kB / 495.8 MB, free: 5.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007358/0.1304, allocations: 103.8 kB / 495.9 MB, free: 5.191 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.0001276/0.1306, allocations: 111.1 kB / 496 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005639/0.1311, allocations: 302.6 kB / 496.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1311, allocations: 0 / 496.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.1313, allocations: 92.2 kB / 496.4 MB, free: 4.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.1324, allocations: 71.48 kB / 496.5 MB, free: 4.621 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.1347, allocations: 1.579 MB / 498.1 MB, free: 2.984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.1351, allocations: 0.7989 MB / 498.9 MB, free: 2.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.991e-05/0.1352, allocations: 31.44 kB / 498.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1352, allocations: 4 kB / 498.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of Templates: time 0.005698/0.1409, allocations: 4.143 MB / 0.4912 GB, free: 13.99 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