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.001318/0.001318, allocations: 100.8 kB / 16.27 MB, free: 5.93 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.00147/0.00147, allocations: 193.4 kB / 17.2 MB, free: 5.574 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.526/1.526, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2212/0.2212, allocations: 43.52 MB / 313.9 MB, free: 0.5234 MB / 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.001611/0.001611, allocations: 63.27 kB / 382.7 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.137, allocations: 57.8 MB / 440.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002951/0.14, allocations: 1.641 MB / 442.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002722/0.1403, allocations: 115.5 kB / 442.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.097e-05/0.1404, allocations: 0 / 442.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.313e-05/0.1405, allocations: 19.86 kB / 442.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.1406, allocations: 39.64 kB / 442.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000143/0.1408, allocations: 27.97 kB / 442.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.1409, allocations: 123.4 kB / 442.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.1411, allocations: 41.09 kB / 442.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.86e-05/0.1411, allocations: 43.86 kB / 442.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.216e-05/0.1412, allocations: 47.78 kB / 442.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.1413, allocations: 8 kB / 442.6 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.506e-05/0.1413, allocations: 12 kB / 442.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.555e-05/0.1413, allocations: 23.91 kB / 442.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.398e-05/0.1414, allocations: 59.73 kB / 442.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.1416, allocations: 119.8 kB / 442.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.1416, allocations: 3.938 kB / 442.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.988e-06/0.1416, allocations: 0 / 442.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1416, allocations: 4 kB / 442.8 MB, free: 4.578 MB / 318.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.0005858/0.1422, allocations: 411.3 kB / 443.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.1423, allocations: 11.89 kB / 443.2 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.1423, allocations: 8.844 kB / 443.3 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001935/0.1425, allocations: 200.1 kB / 443.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.1425, allocations: 8.609 kB / 443.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.1426, allocations: 12.38 kB / 443.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.1428, allocations: 127 kB / 443.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1428, allocations: 8.094 kB / 443.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1429, allocations: 7.938 kB / 443.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1429, allocations: 4 kB / 443.6 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.143, allocations: 63.89 kB / 443.7 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007126/0.1437, allocations: 0.5411 MB / 444.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.1438, allocations: 89.2 kB / 444.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.98e-05/0.1439, allocations: 25.7 kB / 444.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.1439, allocations: 7.938 kB / 444.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.1439, allocations: 38.56 kB / 444.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.1439, allocations: 0 / 444.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005797/0.1445, allocations: 301.3 kB / 444.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.1446, allocations: 85.11 kB / 444.8 MB, free: 2.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.066e-05/0.1447, allocations: 113.8 kB / 444.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.1447, allocations: 33.7 kB / 444.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.146e-05/0.1448, allocations: 119.6 kB / 445 MB, free: 2.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.1448, allocations: 27.56 kB / 445 MB, free: 2.086 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.1448, allocations: 33.7 kB / 445.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.138e-05/0.1449, allocations: 326.8 kB / 445.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.373e-05/0.1449, allocations: 16 kB / 445.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.984e-05/0.145, allocations: 88.52 kB / 445.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.1451, allocations: 128.8 kB / 445.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1451, allocations: 4 kB / 445.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000218/0.1454, allocations: 171.1 kB / 445.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1454, allocations: 7.938 kB / 445.8 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1454, allocations: 4 kB / 445.8 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.1456, allocations: 37.64 kB / 445.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.416e-05/0.1457, allocations: 19.98 kB / 445.9 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.1475, allocations: 2.742 MB / 448.6 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.546e-05/0.1476, allocations: 7.906 kB / 448.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.1476, allocations: 8 kB / 448.6 MB, free: 14.14 MB / 334.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.0001186/0.1477, allocations: 129.7 kB / 448.7 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.775e-05/0.1478, allocations: 15.83 kB / 448.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.1478, allocations: 19.91 kB / 448.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.1479, allocations: 0 / 448.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1479, allocations: 0 / 448.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.1479, allocations: 4 kB / 448.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.1482, allocations: 197.6 kB / 449 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1482, allocations: 0 / 449 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.473e-05/0.1483, allocations: 15.94 kB / 449 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.38e-05/0.1484, allocations: 37.7 kB / 449 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.1484, allocations: 7.938 kB / 449 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002224/0.1506, allocations: 2.73 MB / 451.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1506, allocations: 0 / 451.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003367/0.151, allocations: 308.3 kB / 452.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.151, allocations: 88.95 kB / 452.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.1511, allocations: 4.062 kB / 452.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.1512, allocations: 0 / 452.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.64e-05/0.1512, allocations: 12.03 kB / 452.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.1512, allocations: 4 kB / 452.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.994e-05/0.1513, allocations: 91.7 kB / 452.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1513, allocations: 3.938 kB / 452.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.1517, allocations: 35.91 kB / 452.3 MB, free: 10.06 MB / 334.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.0001164/0.1518, allocations: 99.25 kB / 452.4 MB, free: 9.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004608/0.1522, allocations: 305.2 kB / 452.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1523, allocations: 0 / 452.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.1525, allocations: 249.9 kB / 452.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.1531, allocations: 32.31 kB / 453 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008173/0.1539, allocations: 485.1 kB / 453.4 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.1542, allocations: 0.7083 MB / 454.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.983e-05/0.1543, allocations: 12.88 kB / 454.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.432e-05/0.1543, allocations: 11.44 kB / 454.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1543, allocations: 3.938 kB / 454.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of Templates: time 0.004572/0.1589, allocations: 1.507 MB / 455.7 MB, free: 6.562 MB / 334.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