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.0007619/0.0007619, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008778/0.0008778, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.7 MB / 246.8 MB, free: 9.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2235/0.2235, allocations: 46.19 MB / 345.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 8.281 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1195, allocations: 63.56 MB / 483.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002687/0.1222, allocations: 2.525 MB / 485.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.1234, allocations: 0.7557 MB / 486.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.1235, allocations: 11.94 kB / 486.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.1236, allocations: 39.69 kB / 486.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002206/0.1239, allocations: 107.1 kB / 486.5 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.1241, allocations: 87.91 kB / 486.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.1245, allocations: 425.9 kB / 487 MB, free: 172 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.1247, allocations: 113.1 kB / 487.1 MB, free: 60 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.1249, allocations: 155.4 kB / 487.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.1251, allocations: 163.2 kB / 487.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.1252, allocations: 24 kB / 487.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.297e-05/0.1253, allocations: 20 kB / 487.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.987e-05/0.1253, allocations: 63.7 kB / 487.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.1255, allocations: 208.8 kB / 487.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.1259, allocations: 402.7 kB / 488.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1259, allocations: 0 / 488.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1259, allocations: 3.938 kB / 488.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1259, allocations: 0 / 488.1 MB, free: 15.03 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.0008079/0.1267, allocations: 0.5851 MB / 488.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.1268, allocations: 12.86 kB / 488.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.127, allocations: 60.45 kB / 488.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.1273, allocations: 283.4 kB / 489.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.1274, allocations: 33.38 kB / 489.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.314e-05/0.1274, allocations: 44.28 kB / 489.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006423/0.1281, allocations: 402.4 kB / 489.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1281, allocations: 11.91 kB / 489.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.1282, allocations: 16 kB / 489.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.1282, allocations: 12 kB / 489.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004373/0.1286, allocations: 223.7 kB / 489.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.1308, allocations: 1.726 MB / 491.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.1312, allocations: 266.3 kB / 491.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.1314, allocations: 110.1 kB / 491.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.1314, allocations: 3.938 kB / 491.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.1315, allocations: 50.48 kB / 491.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.703e-06/0.1315, allocations: 3.938 kB / 491.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007185/0.1322, allocations: 273.8 kB / 492.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.1324, allocations: 213.6 kB / 492.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.1327, allocations: 275.2 kB / 492.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.1327, allocations: 33.7 kB / 492.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.1329, allocations: 243.5 kB / 493 MB, free: 9.801 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.632e-05/0.133, allocations: 126.3 kB / 493.1 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.1331, allocations: 41.7 kB / 493.1 MB, free: 9.629 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1332, allocations: 354.7 kB / 493.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.1334, allocations: 105.2 kB / 493.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/0.1339, allocations: 432.8 kB / 494 MB, free: 8.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006999/0.1346, allocations: 0.5781 MB / 494.6 MB, free: 7.848 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.1346, allocations: 0 / 494.6 MB, free: 7.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008601/0.1355, allocations: 0.5368 MB / 495.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1355, allocations: 12 kB / 495.1 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1355, allocations: 8 kB / 495.1 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.1356, allocations: 16 kB / 495.1 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004656/0.136, allocations: 151.8 kB / 495.3 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.1361, allocations: 23.94 kB / 495.3 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.1364, allocations: 71.64 kB / 495.4 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.1364, allocations: 35.98 kB / 495.4 MB, free: 6.992 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.0001536/0.1366, allocations: 177.5 kB / 495.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.1367, allocations: 31.62 kB / 495.6 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.838e-05/0.1368, allocations: 37.83 kB / 495.7 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1368, allocations: 4 kB / 495.7 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.1368, allocations: 7.984 kB / 495.7 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1368, allocations: 3.938 kB / 495.7 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.138, allocations: 0.6436 MB / 496.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1381, allocations: 0 / 496.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004489/0.1385, allocations: 95.88 kB / 496.4 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.1385, allocations: 4 kB / 496.4 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.1386, allocations: 8 kB / 496.4 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.1386, allocations: 7.938 kB / 496.4 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1386, allocations: 8 kB / 496.4 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007635/0.1393, allocations: 0.8424 MB / 497.3 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.849e-05/0.1394, allocations: 108.8 kB / 497.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.552e-05/0.1395, allocations: 15.92 kB / 497.4 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/0.1399, allocations: 19.94 kB / 497.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/0.1399, allocations: 19.97 kB / 497.4 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.1399, allocations: 8 kB / 497.5 MB, free: 4.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1401, allocations: 186 kB / 497.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1401, allocations: 3.938 kB / 497.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000719/0.1408, allocations: 99.84 kB / 497.7 MB, free: 4.559 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.0001186/0.141, allocations: 115.1 kB / 497.8 MB, free: 4.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005062/0.1415, allocations: 298.4 kB / 498.1 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1415, allocations: 0 / 498.1 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.1417, allocations: 96.45 kB / 498.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.1427, allocations: 73.28 kB / 498.3 MB, free: 3.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.1451, allocations: 1.933 MB / 0.4885 GB, free: 1.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.1455, allocations: 0.7953 MB / 0.4893 GB, free: 1.176 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.1457, allocations: 47.25 kB / 0.4893 GB, free: 1.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.47e-05/0.1458, allocations: 31.42 kB / 0.4894 GB, free: 1.094 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1458, allocations: 0 / 0.4894 GB, free: 1.094 MB / 366.1 MB Notification: Performance of Templates: time 0.006073/0.1519, allocations: 2.749 MB / 0.492 GB, free: 14.37 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches