Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001539/0.001539, allocations: 108 kB / 16.41 MB, free: 6.449 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.002224/0.002224, allocations: 189.5 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2353/0.2353, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 69.45 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1416, allocations: 57.79 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005592/0.1473, allocations: 2.834 MB / 0.4906 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.1491, allocations: 0.7445 MB / 0.4914 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004451/0.1496, allocations: 11.94 kB / 0.4914 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003632/0.15, allocations: 59.39 kB / 0.4914 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006805/0.1507, allocations: 126.9 kB / 0.4916 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005419/0.1512, allocations: 87.88 kB / 0.4916 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009083/0.1522, allocations: 430 kB / 0.4921 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.1525, allocations: 145.5 kB / 0.4922 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.1529, allocations: 175.3 kB / 0.4924 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.1531, allocations: 183.2 kB / 0.4925 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.985e-05/0.1532, allocations: 32 kB / 0.4926 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.082e-05/0.1532, allocations: 32 kB / 0.4926 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.91e-05/0.1533, allocations: 75.7 kB / 0.4927 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.1535, allocations: 199 kB / 0.4929 GB, free: 6.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004739/0.154, allocations: 426.5 kB / 0.4933 GB, free: 6.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.154, allocations: 0 / 0.4933 GB, free: 6.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.154, allocations: 4 kB / 0.4933 GB, free: 6.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.154, allocations: 0 / 0.4933 GB, free: 6.223 MB / 382.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.001004/0.155, allocations: 0.6397 MB / 0.4939 GB, free: 5.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.1551, allocations: 11.89 kB / 0.4939 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.699e-05/0.1552, allocations: 40.47 kB / 0.4939 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004814/0.1557, allocations: 296.3 kB / 0.4942 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.1557, allocations: 29.38 kB / 0.4943 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.662e-05/0.1558, allocations: 36.38 kB / 0.4943 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.1565, allocations: 394.5 kB / 0.4947 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.158e-05/0.1566, allocations: 11.91 kB / 0.4947 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.1566, allocations: 12 kB / 0.4947 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1566, allocations: 8 kB / 0.4947 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004553/0.1571, allocations: 223.2 kB / 0.4949 GB, free: 4.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.1595, allocations: 1.711 MB / 0.4966 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.16, allocations: 274.3 kB / 0.4968 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.1602, allocations: 94.08 kB / 0.4969 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.1602, allocations: 8 kB / 0.4969 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.1603, allocations: 46.61 kB / 0.497 GB, free: 2.102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.804e-06/0.1603, allocations: 0 / 0.497 GB, free: 2.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006715/0.161, allocations: 261.5 kB / 0.4972 GB, free: 1.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.1611, allocations: 217.9 kB / 0.4974 GB, free: 1.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.1614, allocations: 274.9 kB / 0.4977 GB, free: 1.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.1614, allocations: 33.64 kB / 0.4977 GB, free: 1.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.1616, allocations: 235.2 kB / 0.498 GB, free: 1.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.1617, allocations: 122.4 kB / 0.4981 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.1618, allocations: 98.25 kB / 0.4982 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.162, allocations: 346.7 kB / 0.4985 GB, free: 464 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.1622, allocations: 105.2 kB / 0.4986 GB, free: 360 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.1626, allocations: 420.9 kB / 0.499 GB, free: 15.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007132/0.1634, allocations: 0.5819 MB / 0.4996 GB, free: 15.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.1634, allocations: 0 / 0.4996 GB, free: 15.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009365/0.1643, allocations: 0.5251 MB / 0.5001 GB, free: 14.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.1644, allocations: 12 kB / 0.5001 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.1644, allocations: 8 kB / 0.5001 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.776e-05/0.1644, allocations: 16 kB / 0.5001 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.1649, allocations: 151.7 kB / 0.5003 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.428e-05/0.1649, allocations: 23.92 kB / 0.5003 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.1652, allocations: 67.67 kB / 0.5003 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.1653, allocations: 36 kB / 0.5004 GB, free: 14.2 MB / 398.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.0002039/0.1655, allocations: 185.4 kB / 0.5006 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.1657, allocations: 31.62 kB / 0.5006 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.21e-05/0.1658, allocations: 33.78 kB / 0.5006 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.1658, allocations: 4 kB / 0.5006 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.1658, allocations: 4 kB / 0.5006 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1658, allocations: 3.984 kB / 0.5006 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.1672, allocations: 0.6514 MB / 0.5013 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.1672, allocations: 4 kB / 0.5013 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.1677, allocations: 87.89 kB / 0.5014 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.1677, allocations: 4 kB / 0.5014 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.1678, allocations: 11.98 kB / 0.5014 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.1678, allocations: 7.938 kB / 0.5014 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.1678, allocations: 7.938 kB / 0.5014 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008195/0.1686, allocations: 0.8335 MB / 0.5022 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.1687, allocations: 104.8 kB / 0.5023 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.762e-05/0.1688, allocations: 12 kB / 0.5023 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.1691, allocations: 20.05 kB / 0.5023 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.255e-05/0.1692, allocations: 23.91 kB / 0.5024 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.1692, allocations: 8 kB / 0.5024 GB, free: 12.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.1694, allocations: 197.9 kB / 0.5025 GB, free: 11.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1694, allocations: 3.938 kB / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007716/0.1702, allocations: 95.84 kB / 0.5026 GB, free: 11.77 MB / 398.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.0001354/0.1704, allocations: 107.2 kB / 0.5027 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005784/0.1709, allocations: 294.2 kB / 0.503 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.171, allocations: 0 / 0.503 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.1711, allocations: 95.89 kB / 0.5031 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009673/0.1721, allocations: 68.27 kB / 0.5032 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.1744, allocations: 1.533 MB / 0.5047 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.1749, allocations: 0.7951 MB / 0.5055 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001652/0.175, allocations: 47.25 kB / 0.5055 GB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.033e-05/0.1751, allocations: 27.44 kB / 0.5055 GB, free: 8.719 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1751, allocations: 0 / 0.5055 GB, free: 8.719 MB / 398.1 MB Notification: Performance of Templates: time 0.007903/0.183, allocations: 3.01 MB / 0.5085 GB, free: 5.719 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches