Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001138/0.001138, allocations: 188 kB / 19.34 MB, free: 3.641 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.294/1.294, allocations: 222.9 MB / 243 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2092/0.2092, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 66.23 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1228, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00403/0.1269, allocations: 1.898 MB / 472.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008552/0.1278, allocations: 0.4909 MB / 473.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.1279, allocations: 4 kB / 473.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.1281, allocations: 23.8 kB / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.1282, allocations: 35.64 kB / 473.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.1284, allocations: 35.89 kB / 473.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.1286, allocations: 155.3 kB / 473.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.1288, allocations: 61.64 kB / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1289, allocations: 63.78 kB / 473.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.129, allocations: 59.7 kB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.1291, allocations: 12 kB / 473.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.58e-05/0.1291, allocations: 12 kB / 473.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.192e-05/0.1291, allocations: 35.84 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.237e-05/0.1292, allocations: 67.67 kB / 473.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.1294, allocations: 155.4 kB / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1294, allocations: 0 / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1294, allocations: 0 / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1295, allocations: 0 / 473.8 MB, free: 10.55 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005544/0.13, allocations: 423.1 kB / 474.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1301, allocations: 12.03 kB / 474.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.1301, allocations: 20.75 kB / 474.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.1304, allocations: 204.1 kB / 474.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1304, allocations: 8.375 kB / 474.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.1304, allocations: 12.38 kB / 474.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.1307, allocations: 125.8 kB / 474.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.1307, allocations: 11.83 kB / 474.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.1307, allocations: 4 kB / 474.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1307, allocations: 4 kB / 474.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.1309, allocations: 83.89 kB / 474.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006584/0.1316, allocations: 468.2 kB / 475.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.1318, allocations: 130.4 kB / 475.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.1319, allocations: 56.83 kB / 475.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.1319, allocations: 3.938 kB / 475.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.132, allocations: 46.56 kB / 475.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.252e-06/0.132, allocations: 0 / 475.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001413/0.1334, allocations: 0.8044 MB / 476.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.1335, allocations: 55.41 kB / 476.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.1336, allocations: 140.7 kB / 476.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.1336, allocations: 25.7 kB / 476.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.289e-05/0.1337, allocations: 116.3 kB / 476.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.1337, allocations: 67 kB / 476.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.1338, allocations: 37.7 kB / 476.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1339, allocations: 322.8 kB / 476.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.652e-05/0.134, allocations: 47.97 kB / 477 MB, free: 7.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.1341, allocations: 75.34 kB / 477.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.1343, allocations: 131.4 kB / 477.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1344, allocations: 4 kB / 477.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003595/0.1347, allocations: 206.2 kB / 477.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1347, allocations: 7.938 kB / 477.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1348, allocations: 0 / 477.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000158/0.1349, allocations: 44.83 kB / 477.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.1351, allocations: 35.92 kB / 477.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.1365, allocations: 1.736 MB / 479.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.819e-05/0.1366, allocations: 4.234 kB / 479.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.1366, allocations: 12 kB / 479.2 MB, free: 4.648 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.609e-05/0.1367, allocations: 121.8 kB / 479.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.1367, allocations: 15.81 kB / 479.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.722e-05/0.1368, allocations: 25.16 kB / 479.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1368, allocations: 7.938 kB / 479.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1368, allocations: 0 / 479.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1368, allocations: 8.047 kB / 479.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007746/0.1376, allocations: 0.5461 MB / 479.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1376, allocations: 0 / 479.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.1378, allocations: 35.92 kB / 480 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.1379, allocations: 36.88 kB / 480 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.1379, allocations: 3.984 kB / 480 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.1391, allocations: 1.477 MB / 481.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1391, allocations: 0 / 481.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.1395, allocations: 341 kB / 481.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.1396, allocations: 89.08 kB / 481.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.1396, allocations: 11.98 kB / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.039e-05/0.1397, allocations: 4 kB / 481.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.1398, allocations: 19.92 kB / 482 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.1398, allocations: 4 kB / 482 MB, free: 1.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.42e-05/0.1398, allocations: 109.8 kB / 482.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1398, allocations: 3.938 kB / 482.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.1402, allocations: 40 kB / 482.1 MB, free: 1.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001011/0.1403, allocations: 107.3 kB / 482.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.1408, allocations: 262.6 kB / 482.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1408, allocations: 0 / 482.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.141, allocations: 190.6 kB / 482.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.1413, allocations: 28.39 kB / 482.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007065/0.1421, allocations: 437.1 kB / 483.1 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.1424, allocations: 0.7166 MB / 483.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.997e-05/0.1424, allocations: 13.42 kB / 483.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.359e-05/0.1425, allocations: 15.44 kB / 483.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1425, allocations: 0 / 483.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Templates: time 0.004388/0.1469, allocations: 1.596 MB / 485.5 MB, free: 14.08 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches