Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 106.5 kB / 16.41 MB, free: 6.516 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.001807/0.001807, 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.613/1.613, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2253/0.2253, allocations: 43.52 MB / 314.1 MB, free: 452 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.001798/0.001798, allocations: 74.03 kB / 441.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1441, allocations: 57.78 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.004367/0.1485, allocations: 1.663 MB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004752/0.149, allocations: 111.6 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.1492, allocations: 0 / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.338e-05/0.1493, allocations: 19.8 kB / 0.4896 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.1496, allocations: 35.69 kB / 0.4896 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.1498, allocations: 23.98 kB / 0.4897 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.1501, allocations: 123.4 kB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.1503, allocations: 41.08 kB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.1505, allocations: 47.86 kB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1506, allocations: 55.7 kB / 0.4899 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.1507, allocations: 8 kB / 0.4899 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.573e-05/0.1507, allocations: 8 kB / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.352e-05/0.1508, allocations: 23.92 kB / 0.49 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.1509, allocations: 55.75 kB / 0.49 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1511, allocations: 123.5 kB / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.1511, allocations: 0 / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.1512, allocations: 0 / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1512, allocations: 0 / 0.4901 GB, free: 9.465 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007615/0.1519, allocations: 415.2 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/0.152, allocations: 11.89 kB / 0.4905 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.1521, allocations: 16.84 kB / 0.4906 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1524, allocations: 200.1 kB / 0.4908 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.1524, allocations: 12.61 kB / 0.4908 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.1525, allocations: 16.33 kB / 0.4908 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003846/0.1529, allocations: 129.5 kB / 0.4909 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.1529, allocations: 12.06 kB / 0.4909 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.1529, allocations: 7.938 kB / 0.4909 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.153, allocations: 4 kB / 0.4909 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001511/0.1531, allocations: 55.95 kB / 0.491 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009351/0.1541, allocations: 0.5412 MB / 0.4915 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.1542, allocations: 89.06 kB / 0.4916 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.772e-05/0.1543, allocations: 29.89 kB / 0.4916 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.1543, allocations: 7.938 kB / 0.4916 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.1544, allocations: 38.5 kB / 0.4917 GB, free: 7.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.462e-06/0.1544, allocations: 0 / 0.4917 GB, free: 7.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008375/0.1552, allocations: 301.4 kB / 0.492 GB, free: 7.359 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.1553, allocations: 77.11 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.1555, allocations: 121.8 kB / 0.4921 GB, free: 7.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.1555, allocations: 25.7 kB / 0.4922 GB, free: 7.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.1556, allocations: 131.7 kB / 0.4923 GB, free: 6.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.1557, allocations: 27.75 kB / 0.4923 GB, free: 6.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.1557, allocations: 29.7 kB / 0.4923 GB, free: 6.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.1559, allocations: 326.8 kB / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.93e-05/0.156, allocations: 20 kB / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1561, allocations: 88.52 kB / 0.4928 GB, free: 6.445 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.1563, allocations: 124.5 kB / 0.4929 GB, free: 6.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1563, allocations: 0 / 0.4929 GB, free: 6.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003956/0.1567, allocations: 171.1 kB / 0.493 GB, free: 6.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.1568, allocations: 8 kB / 0.4931 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.1568, allocations: 0 / 0.4931 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002809/0.1571, allocations: 45.64 kB / 0.4931 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1572, allocations: 23.92 kB / 0.4931 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/0.16, allocations: 2.734 MB / 0.4958 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.766e-05/0.1601, allocations: 16.05 kB / 0.4958 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.1602, allocations: 11.94 kB / 0.4958 GB, free: 2.992 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.1603, allocations: 125.8 kB / 0.4959 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.1604, allocations: 11.94 kB / 0.4959 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.092e-05/0.1604, allocations: 11.84 kB / 0.496 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1605, allocations: 4 kB / 0.496 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1605, allocations: 0 / 0.496 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1605, allocations: 0 / 0.496 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000363/0.1609, allocations: 209.5 kB / 0.4962 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1609, allocations: 0 / 0.4962 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.161, allocations: 19.94 kB / 0.4962 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001185/0.1611, allocations: 29.7 kB / 0.4962 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.1612, allocations: 7.938 kB / 0.4962 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/0.1637, allocations: 2.738 MB / 0.4989 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/0.1638, allocations: 3.938 kB / 0.4989 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004382/0.1642, allocations: 304.6 kB / 0.4992 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.737e-05/0.1643, allocations: 85 kB / 0.4993 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.1643, allocations: 8 kB / 0.4993 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.1645, allocations: 0 / 0.4993 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.806e-05/0.1645, allocations: 8.031 kB / 0.4993 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.1645, allocations: 0 / 0.4993 GB, free: 15.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.617e-05/0.1646, allocations: 103.3 kB / 0.4994 GB, free: 14.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1647, allocations: 0 / 0.4994 GB, free: 14.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005228/0.1652, allocations: 35.94 kB / 0.4994 GB, free: 14.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00014/0.1653, allocations: 91.25 kB / 0.4995 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006241/0.166, allocations: 313.5 kB / 0.4998 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.166, allocations: 0 / 0.4998 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003106/0.1663, allocations: 253.4 kB / 0.5 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006178/0.1669, allocations: 28.45 kB / 0.5001 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.168, allocations: 472.2 kB / 0.5005 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.1684, allocations: 0.7122 MB / 0.5012 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.586e-05/0.1685, allocations: 8.891 kB / 0.5012 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.1685, allocations: 15.42 kB / 0.5012 GB, free: 12.92 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1685, allocations: 0 / 0.5012 GB, free: 12.92 MB / 398.1 MB Notification: Performance of Templates: time 0.0059/0.1744, allocations: 1.527 MB / 0.5027 GB, free: 11.4 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches