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.00153/0.00153, allocations: 109 kB / 16.41 MB, free: 6.48 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.001624/0.001624, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.649/1.649, allocations: 205.1 MB / 223.2 MB, free: 12.11 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.2332/0.2332, allocations: 43.53 MB / 314.1 MB, free: 444 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.001454/0.001454, allocations: 65.47 kB / 441.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1374, allocations: 57.79 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003088/0.1406, allocations: 1.667 MB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003755/0.141, allocations: 99.67 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.1411, allocations: 7.938 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.646e-05/0.1411, allocations: 11.86 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.1413, allocations: 43.69 kB / 0.4896 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.1415, allocations: 19.97 kB / 0.4897 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.1417, allocations: 127.4 kB / 0.4898 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.1419, allocations: 41.08 kB / 0.4898 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.105e-05/0.1419, allocations: 51.8 kB / 0.4899 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.949e-05/0.142, allocations: 51.77 kB / 0.4899 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.1421, allocations: 8 kB / 0.4899 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.337e-05/0.1421, allocations: 8 kB / 0.4899 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.303e-05/0.1421, allocations: 23.92 kB / 0.49 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.999e-05/0.1422, allocations: 63.73 kB / 0.49 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.1424, allocations: 123.5 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1424, allocations: 0 / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1424, allocations: 0 / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1425, allocations: 0 / 0.4901 GB, free: 9.488 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.000653/0.1431, allocations: 411.4 kB / 0.4905 GB, free: 9.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1432, allocations: 15.83 kB / 0.4905 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.788e-05/0.1432, allocations: 8.844 kB / 0.4906 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.1435, allocations: 196.1 kB / 0.4907 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.1435, allocations: 12.61 kB / 0.4908 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.1436, allocations: 12.38 kB / 0.4908 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/0.1438, allocations: 133.5 kB / 0.4909 GB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.1439, allocations: 4.188 kB / 0.4909 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.1439, allocations: 7.938 kB / 0.4909 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.1439, allocations: 4 kB / 0.4909 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.144, allocations: 55.95 kB / 0.491 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008713/0.1449, allocations: 0.5449 MB / 0.4915 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.1451, allocations: 81.22 kB / 0.4916 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/0.1451, allocations: 33.66 kB / 0.4916 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.1451, allocations: 11.88 kB / 0.4916 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.1452, allocations: 38.64 kB / 0.4917 GB, free: 7.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/0.1452, allocations: 0 / 0.4917 GB, free: 7.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006924/0.1459, allocations: 301.4 kB / 0.4919 GB, free: 7.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.146, allocations: 77.11 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1461, allocations: 129.8 kB / 0.4921 GB, free: 7.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1461, allocations: 25.7 kB / 0.4922 GB, free: 7.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.1462, allocations: 119.6 kB / 0.4923 GB, free: 7.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.662e-05/0.1463, allocations: 39.39 kB / 0.4923 GB, free: 6.977 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.1463, allocations: 25.72 kB / 0.4923 GB, free: 6.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1465, allocations: 326.8 kB / 0.4926 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.485e-05/0.1465, allocations: 23.98 kB / 0.4927 GB, free: 6.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.176e-05/0.1466, allocations: 84.58 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.1468, allocations: 120.5 kB / 0.4929 GB, free: 6.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1468, allocations: 4 kB / 0.4929 GB, free: 6.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002574/0.1471, allocations: 163.1 kB / 0.493 GB, free: 6.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1471, allocations: 8 kB / 0.493 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.1471, allocations: 0 / 0.493 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002188/0.1473, allocations: 41.64 kB / 0.4931 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.922e-05/0.1474, allocations: 27.92 kB / 0.4931 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.1494, allocations: 2.75 MB / 0.4958 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.115e-05/0.1495, allocations: 16.06 kB / 0.4958 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.1495, allocations: 4 kB / 0.4958 GB, free: 3.027 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.0001002/0.1496, allocations: 129.7 kB / 0.4959 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.1497, allocations: 7.906 kB / 0.4959 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.748e-05/0.1497, allocations: 11.84 kB / 0.4959 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1497, allocations: 4 kB / 0.496 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.1497, allocations: 0 / 0.496 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1497, allocations: 0 / 0.496 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.15, allocations: 201.6 kB / 0.4961 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.15, allocations: 3.938 kB / 0.4961 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.564e-05/0.1501, allocations: 15.98 kB / 0.4962 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/0.1502, allocations: 33.7 kB / 0.4962 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.1502, allocations: 7.938 kB / 0.4962 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00183/0.1521, allocations: 2.734 MB / 0.4989 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1521, allocations: 0 / 0.4989 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.1524, allocations: 308.5 kB / 0.4992 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.774e-05/0.1524, allocations: 84.95 kB / 0.4992 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.1525, allocations: 12.03 kB / 0.4993 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.648e-05/0.1526, allocations: 0 / 0.4993 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/0.1526, allocations: 4 kB / 0.4993 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1526, allocations: 3.938 kB / 0.4993 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.053e-05/0.1527, allocations: 107.6 kB / 0.4994 GB, free: 14.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1527, allocations: 0 / 0.4994 GB, free: 14.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003397/0.153, allocations: 35.91 kB / 0.4994 GB, free: 14.95 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.0001029/0.1531, allocations: 95.23 kB / 0.4995 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004421/0.1536, allocations: 305.8 kB / 0.4998 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1536, allocations: 0 / 0.4998 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.1538, allocations: 261.3 kB / 0.5 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.1544, allocations: 38.08 kB / 0.5001 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007606/0.1551, allocations: 473 kB / 0.5005 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.1554, allocations: 0.7006 MB / 0.5012 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.633e-05/0.1555, allocations: 16.86 kB / 0.5012 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.1555, allocations: 11.44 kB / 0.5012 GB, free: 12.96 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1555, allocations: 0 / 0.5012 GB, free: 12.96 MB / 398.1 MB Notification: Performance of Templates: time 0.004219/0.1597, allocations: 1.524 MB / 0.5027 GB, free: 11.43 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