Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 222.5 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 98.27 kB / 269.9 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3679/0.3679, allocations: 43.5 MB / 360.7 MB, free: 51.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 51.92 kB / 429.2 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1309, allocations: 57.76 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003253/0.1342, allocations: 1.967 MB / 489 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008689/0.1351, allocations: 0.5269 MB / 489.5 MB, free: 10.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.346e-05/0.1352, allocations: 4 kB / 489.5 MB, free: 10.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.1354, allocations: 19.84 kB / 489.5 MB, free: 10 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.088e-05/0.1355, allocations: 31.77 kB / 489.5 MB, free: 9.973 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.1357, allocations: 31.92 kB / 489.6 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000188/0.1359, allocations: 151.2 kB / 489.7 MB, free: 9.793 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.136, allocations: 45.97 kB / 489.8 MB, free: 9.742 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.1362, allocations: 55.84 kB / 489.8 MB, free: 9.688 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.052e-05/0.1363, allocations: 63.7 kB / 489.9 MB, free: 9.625 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.1363, allocations: 11.94 kB / 489.9 MB, free: 9.613 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.082e-05/0.1363, allocations: 12 kB / 489.9 MB, free: 9.602 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.499e-05/0.1363, allocations: 19.86 kB / 489.9 MB, free: 9.582 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.46e-05/0.1364, allocations: 63.67 kB / 490 MB, free: 9.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.1366, allocations: 155.7 kB / 490.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1366, allocations: 0 / 490.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1366, allocations: 0 / 490.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1366, allocations: 0 / 490.1 MB, free: 9.367 MB / 378.7 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.0005528/0.1372, allocations: 443 kB / 490.6 MB, free: 8.887 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1373, allocations: 8.031 kB / 490.6 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.1373, allocations: 16.75 kB / 490.6 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.1375, allocations: 200.1 kB / 490.8 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.1375, allocations: 8.375 kB / 490.8 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.1376, allocations: 16.31 kB / 490.8 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002521/0.1378, allocations: 137.7 kB / 491 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.1378, allocations: 0 / 491 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.1379, allocations: 4 kB / 491 MB, free: 8.461 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1379, allocations: 4 kB / 491 MB, free: 8.457 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1381, allocations: 91.88 kB / 491.1 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.1387, allocations: 472.1 kB / 491.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.1389, allocations: 122.4 kB / 491.6 MB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.139, allocations: 56.83 kB / 491.7 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.1391, allocations: 4 kB / 491.7 MB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.1391, allocations: 30.56 kB / 491.7 MB, free: 7.625 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.1391, allocations: 0 / 491.7 MB, free: 7.625 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001358/0.1405, allocations: 0.7984 MB / 492.5 MB, free: 6.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1405, allocations: 51.41 kB / 492.6 MB, free: 6.668 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.1406, allocations: 149.5 kB / 492.7 MB, free: 6.516 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1407, allocations: 33.7 kB / 492.7 MB, free: 6.477 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.926e-05/0.1407, allocations: 108.3 kB / 492.9 MB, free: 6.363 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/0.1408, allocations: 74.98 kB / 492.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.196e-05/0.1408, allocations: 33.7 kB / 493 MB, free: 6.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.141, allocations: 330.8 kB / 493.3 MB, free: 5.918 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.114e-05/0.141, allocations: 39.98 kB / 493.3 MB, free: 5.879 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.1412, allocations: 79.34 kB / 493.4 MB, free: 5.789 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.1414, allocations: 139.3 kB / 493.5 MB, free: 5.641 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1414, allocations: 0 / 493.5 MB, free: 5.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003502/0.1417, allocations: 210.2 kB / 493.7 MB, free: 5.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1418, allocations: 11.94 kB / 493.8 MB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1418, allocations: 4.031 kB / 493.8 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001227/0.1419, allocations: 40.83 kB / 493.8 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.1421, allocations: 31.98 kB / 493.8 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.1433, allocations: 1.553 MB / 495.4 MB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.1434, allocations: 12.02 kB / 495.4 MB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1434, allocations: 7.938 kB / 495.4 MB, free: 3.633 MB / 378.7 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 0.0001167/0.1435, allocations: 125.8 kB / 495.5 MB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.1436, allocations: 19.88 kB / 495.5 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.1436, allocations: 17.19 kB / 495.6 MB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1436, allocations: 4 kB / 495.6 MB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1437, allocations: 0 / 495.6 MB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1437, allocations: 3.984 kB / 495.6 MB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007041/0.1444, allocations: 0.5544 MB / 496.1 MB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1444, allocations: 3.984 kB / 496.1 MB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.1446, allocations: 35.92 kB / 496.2 MB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.807e-05/0.1447, allocations: 28.84 kB / 496.2 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1447, allocations: 7.984 kB / 496.2 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009949/0.1457, allocations: 1.378 MB / 497.6 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1457, allocations: 3.938 kB / 497.6 MB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.1486, allocations: 2.945 MB / 0.4888 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.1486, allocations: 81.02 kB / 0.4889 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.1487, allocations: 8 kB / 0.4889 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-05/0.1488, allocations: 8 kB / 0.4889 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.1488, allocations: 15.88 kB / 0.4889 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.1488, allocations: 7.938 kB / 0.4889 GB, free: 13.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.513e-05/0.1489, allocations: 108.3 kB / 0.489 GB, free: 13.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1489, allocations: 0 / 0.489 GB, free: 13.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004215/0.1494, allocations: 52.12 kB / 0.4891 GB, free: 13.72 MB / 394.7 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.0001297/0.1495, allocations: 111.1 kB / 0.4892 GB, free: 13.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004802/0.15, allocations: 254.6 kB / 0.4894 GB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.15, allocations: 0 / 0.4894 GB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.1502, allocations: 198.6 kB / 0.4896 GB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.1507, allocations: 20.61 kB / 0.4896 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.1518, allocations: 0.7983 MB / 0.4904 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.1521, allocations: 0.7283 MB / 0.4911 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.1521, allocations: 13.42 kB / 0.4911 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.1522, allocations: 11.44 kB / 0.4911 GB, free: 11.49 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1522, allocations: 4 kB / 0.4911 GB, free: 11.49 MB / 394.7 MB Notification: Performance of Templates: time 0.004658/0.1568, allocations: 1.865 MB / 0.493 GB, free: 9.625 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches