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.001397/0.001397, allocations: 106.7 kB / 16.41 MB, free: 6.5 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.001507/0.001507, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.552/1.552, 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.2396/0.2396, 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.001345/0.001345, allocations: 65.47 kB / 441.8 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1443, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004095/0.1485, allocations: 2.834 MB / 0.4906 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1498, allocations: 0.7408 MB / 0.4914 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.15, allocations: 11.94 kB / 0.4914 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.1502, allocations: 59.38 kB / 0.4914 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.1504, allocations: 122.9 kB / 0.4915 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.1507, allocations: 87.89 kB / 0.4916 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004518/0.1512, allocations: 430 kB / 0.492 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.1515, allocations: 149.5 kB / 0.4922 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.1517, allocations: 159.4 kB / 0.4923 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.152, allocations: 183.1 kB / 0.4925 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.7e-05/0.152, allocations: 32 kB / 0.4925 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.1521, allocations: 32 kB / 0.4926 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.191e-05/0.1522, allocations: 83.67 kB / 0.4927 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.1524, allocations: 195.1 kB / 0.4928 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005198/0.1529, allocations: 426.2 kB / 0.4932 GB, free: 6.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1529, allocations: 3.984 kB / 0.4932 GB, free: 6.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1529, allocations: 0 / 0.4932 GB, free: 6.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.1529, allocations: 4 kB / 0.4933 GB, free: 6.242 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.001111/0.1541, allocations: 0.6542 MB / 0.4939 GB, free: 5.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1541, allocations: 15.88 kB / 0.4939 GB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.282e-05/0.1542, allocations: 40.7 kB / 0.4939 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.1546, allocations: 284.5 kB / 0.4942 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.1547, allocations: 29.38 kB / 0.4942 GB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.035e-05/0.1547, allocations: 40.33 kB / 0.4943 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006875/0.1554, allocations: 394.5 kB / 0.4947 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.1555, allocations: 11.95 kB / 0.4947 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.1555, allocations: 16 kB / 0.4947 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1555, allocations: 8 kB / 0.4947 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004275/0.156, allocations: 227.7 kB / 0.4949 GB, free: 4.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.1582, allocations: 1.719 MB / 0.4966 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004282/0.1586, allocations: 270.2 kB / 0.4968 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.1588, allocations: 94.08 kB / 0.4969 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.1588, allocations: 8 kB / 0.4969 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.1589, allocations: 50.48 kB / 0.497 GB, free: 2.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.1589, allocations: 0 / 0.497 GB, free: 2.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006685/0.1596, allocations: 261.6 kB / 0.4972 GB, free: 1.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1597, allocations: 217.9 kB / 0.4975 GB, free: 1.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.16, allocations: 274.9 kB / 0.4977 GB, free: 1.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1601, allocations: 33.64 kB / 0.4977 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.1603, allocations: 243.9 kB / 0.498 GB, free: 1.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.394e-05/0.1604, allocations: 127.1 kB / 0.4981 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.1605, allocations: 98.3 kB / 0.4982 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1607, allocations: 342.8 kB / 0.4985 GB, free: 448 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.1609, allocations: 105.2 kB / 0.4986 GB, free: 344 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.1613, allocations: 424.8 kB / 0.499 GB, free: 15.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007826/0.1621, allocations: 0.5663 MB / 0.4996 GB, free: 15.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1622, allocations: 7.938 kB / 0.4996 GB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008648/0.163, allocations: 0.5248 MB / 0.5001 GB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.1631, allocations: 12 kB / 0.5001 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1631, allocations: 8 kB / 0.5001 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.1631, allocations: 16 kB / 0.5001 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004223/0.1635, allocations: 151.7 kB / 0.5003 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.42e-05/0.1636, allocations: 23.92 kB / 0.5003 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.1639, allocations: 64.42 kB / 0.5004 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.1639, allocations: 36 kB / 0.5004 GB, free: 14.19 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.0001817/0.1641, allocations: 185.4 kB / 0.5006 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.1643, allocations: 31.81 kB / 0.5006 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.17e-05/0.1643, allocations: 37.77 kB / 0.5006 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.1644, allocations: 4 kB / 0.5006 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.1644, allocations: 8 kB / 0.5007 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1644, allocations: 192 / 0.5007 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.1656, allocations: 0.6514 MB / 0.5013 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.1657, allocations: 4 kB / 0.5013 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004507/0.1661, allocations: 91.88 kB / 0.5014 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.1661, allocations: 7.984 kB / 0.5014 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.1662, allocations: 8 kB / 0.5014 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.1662, allocations: 7.938 kB / 0.5014 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.1662, allocations: 4 kB / 0.5014 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008442/0.167, allocations: 0.8338 MB / 0.5022 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/0.1671, allocations: 104.9 kB / 0.5023 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.762e-05/0.1672, allocations: 15.98 kB / 0.5023 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.1675, allocations: 11.94 kB / 0.5023 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.359e-05/0.1676, allocations: 27.84 kB / 0.5024 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.1676, allocations: 12 kB / 0.5024 GB, free: 12.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.1678, allocations: 193.9 kB / 0.5026 GB, free: 11.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1678, allocations: 0 / 0.5026 GB, free: 11.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007209/0.1685, allocations: 95.89 kB / 0.5027 GB, free: 11.76 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.0001188/0.1687, allocations: 111.1 kB / 0.5028 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005356/0.1692, allocations: 294.2 kB / 0.503 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1692, allocations: 0 / 0.503 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.1694, allocations: 95.89 kB / 0.5031 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009643/0.1704, allocations: 83.7 kB / 0.5032 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.1726, allocations: 1.552 MB / 0.5047 GB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.1732, allocations: 0.7948 MB / 0.5055 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000151/0.1733, allocations: 47.25 kB / 0.5056 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.535e-05/0.1734, allocations: 27.44 kB / 0.5056 GB, free: 8.676 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1734, allocations: 0 / 0.5056 GB, free: 8.676 MB / 398.1 MB Notification: Performance of Templates: time 0.006979/0.1804, allocations: 3 MB / 0.5085 GB, free: 5.684 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