Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008319/0.0008319, allocations: 99.03 kB / 17 MB, free: 6.398 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.001136/0.001135, allocations: 177.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 223.3 MB / 241.9 MB, free: 296 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2254/0.2254, allocations: 44.25 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003293, allocations: 12 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1273, allocations: 61.93 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001819/0.1292, allocations: 1.327 MB / 472.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002536/0.1295, allocations: 111.6 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.403e-05/0.1296, allocations: 3.938 kB / 473 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.915e-05/0.1296, allocations: 19.86 kB / 473 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.1297, allocations: 27.77 kB / 473.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001145/0.1298, allocations: 15.98 kB / 473.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.13, allocations: 119.5 kB / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1301, allocations: 36.89 kB / 473.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.47e-05/0.1302, allocations: 35.88 kB / 473.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.855e-05/0.1303, allocations: 39.84 kB / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.1303, allocations: 4 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.98e-05/0.1303, allocations: 8 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.534e-05/0.1304, allocations: 23.91 kB / 473.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.1304, allocations: 53.64 kB / 473.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.1305, allocations: 84.03 kB / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1305, allocations: 0 / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1305, allocations: 0 / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.1305, allocations: 0 / 473.5 MB, free: 11.78 MB / 350.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.0004484/0.131, allocations: 397.4 kB / 473.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.131, allocations: 8.031 kB / 473.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.916e-05/0.1311, allocations: 11.91 kB / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.1313, allocations: 190.8 kB / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1313, allocations: 12.23 kB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.1313, allocations: 12 kB / 474.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.1316, allocations: 132.9 kB / 474.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1316, allocations: 4 kB / 474.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.1316, allocations: 4 kB / 474.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1316, allocations: 4 kB / 474.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.1318, allocations: 66.88 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007426/0.1325, allocations: 0.5411 MB / 474.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.1327, allocations: 97.09 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.04e-05/0.1327, allocations: 21.72 kB / 475 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.1327, allocations: 3.953 kB / 475 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.1328, allocations: 42.64 kB / 475 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.1328, allocations: 0 / 475 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005735/0.1333, allocations: 297.4 kB / 475.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.1334, allocations: 77.11 kB / 475.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.1335, allocations: 125.7 kB / 475.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.1335, allocations: 25.7 kB / 475.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.677e-05/0.1336, allocations: 119.7 kB / 475.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.639e-05/0.1336, allocations: 31.55 kB / 475.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-06/0.1336, allocations: 8 kB / 475.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1338, allocations: 318.8 kB / 476 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.75e-05/0.1338, allocations: 23.92 kB / 476 MB, free: 8.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.935e-05/0.1339, allocations: 84.58 kB / 476.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.934e-05/0.134, allocations: 39.92 kB / 476.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.134, allocations: 0 / 476.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00026/0.1343, allocations: 171.1 kB / 476.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1343, allocations: 4 kB / 476.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1343, allocations: 4 kB / 476.3 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.1345, allocations: 33.7 kB / 476.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1346, allocations: 35.92 kB / 476.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.1364, allocations: 2.537 MB / 478.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.629e-05/0.1364, allocations: 11.84 kB / 478.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.1364, allocations: 8 kB / 478.9 MB, free: 5.727 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.1366, allocations: 125.9 kB / 479.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.1366, allocations: 7.906 kB / 479.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.1366, allocations: 15.89 kB / 479.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1366, allocations: 3.953 kB / 479.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1367, allocations: 0 / 479.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1367, allocations: 4 kB / 479.1 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.1369, allocations: 205.5 kB / 479.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1369, allocations: 0 / 479.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.937e-05/0.137, allocations: 15.94 kB / 479.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001234/0.1372, allocations: 41.64 kB / 479.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.1372, allocations: 4 kB / 479.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/0.1388, allocations: 2.529 MB / 481.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1388, allocations: 256 / 481.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1391, allocations: 312.3 kB / 482.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.1392, allocations: 81.11 kB / 482.3 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.1392, allocations: 4.031 kB / 482.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.1393, allocations: 0 / 482.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.744e-05/0.1393, allocations: 15.94 kB / 482.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.1394, allocations: 4 kB / 482.3 MB, free: 2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.565e-05/0.1394, allocations: 95.64 kB / 482.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1394, allocations: 0 / 482.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.1398, allocations: 39.84 kB / 482.4 MB, free: 1.867 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001129/0.1399, allocations: 99.23 kB / 482.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000426/0.1403, allocations: 297.5 kB / 482.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1403, allocations: 0 / 482.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.1406, allocations: 257.3 kB / 483.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.1411, allocations: 27.92 kB / 483.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008569/0.1419, allocations: 0.5789 MB / 483.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.1423, allocations: 0.7122 MB / 484.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.75e-05/0.1423, allocations: 8.891 kB / 484.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.1423, allocations: 11.44 kB / 484.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1423, allocations: 0 / 484.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Templates: time 0.003927/0.1463, allocations: 1.396 MB / 485.8 MB, free: 14.38 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches