Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001683/0.001683, allocations: 180.4 kB / 16.08 MB, free: 5.531 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.6 MB / 222.4 MB, free: 13.68 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 90.27 kB / 270.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2051/0.2051, allocations: 43.69 MB / 362.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 8 kB / 432.3 MB, free: 19.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 58.86 MB / 491.2 MB, free: 8.137 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002223/0.1391, allocations: 1.582 MB / 492.7 MB, free: 6.535 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008523/0.14, allocations: 0.4961 MB / 493.2 MB, free: 6.031 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.588e-05/0.1401, allocations: 7.938 kB / 493.2 MB, free: 6.023 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.1402, allocations: 15.92 kB / 493.3 MB, free: 6.008 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 8.244e-05/0.1403, allocations: 31.7 kB / 493.3 MB, free: 5.977 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.1405, allocations: 35.95 kB / 493.3 MB, free: 5.941 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.1407, allocations: 143.3 kB / 493.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.1409, allocations: 53.95 kB / 493.5 MB, free: 5.742 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.141, allocations: 51.8 kB / 493.6 MB, free: 5.691 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.1411, allocations: 59.7 kB / 493.6 MB, free: 5.633 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.1412, allocations: 4 kB / 493.6 MB, free: 5.629 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.1412, allocations: 8 kB / 493.6 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.1412, allocations: 19.92 kB / 493.7 MB, free: 5.602 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.503e-05/0.1413, allocations: 89.36 kB / 493.8 MB, free: 5.508 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.1415, allocations: 135.7 kB / 493.9 MB, free: 5.375 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.1415, allocations: 4 kB / 493.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.047e-06/0.1415, allocations: 7.922 kB / 493.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1415, allocations: 4 kB / 493.9 MB, free: 5.359 MB / 330.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.0005832/0.1421, allocations: 403.2 kB / 494.3 MB, free: 4.918 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1422, allocations: 8.031 kB / 494.3 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.1422, allocations: 16.75 kB / 494.3 MB, free: 4.895 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.1425, allocations: 208.1 kB / 494.5 MB, free: 4.652 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1425, allocations: 8.375 kB / 494.5 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.1426, allocations: 20.22 kB / 494.5 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1428, allocations: 129.8 kB / 494.7 MB, free: 4.492 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1429, allocations: 0 / 494.7 MB, free: 4.492 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.1429, allocations: 4 kB / 494.7 MB, free: 4.488 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.1429, allocations: 4 kB / 494.7 MB, free: 4.484 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.1431, allocations: 87.94 kB / 494.8 MB, free: 4.398 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007482/0.1439, allocations: 484.1 kB / 495.2 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.1441, allocations: 118.5 kB / 495.4 MB, free: 3.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.1442, allocations: 60.83 kB / 495.4 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.1442, allocations: 4 kB / 495.4 MB, free: 3.684 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1443, allocations: 34.5 kB / 495.5 MB, free: 3.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.062e-06/0.1443, allocations: 0 / 495.5 MB, free: 3.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001545/0.1458, allocations: 0.8179 MB / 496.3 MB, free: 2.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.1459, allocations: 59.41 kB / 496.3 MB, free: 2.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.146, allocations: 138.1 kB / 496.5 MB, free: 2.516 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.1461, allocations: 29.7 kB / 496.5 MB, free: 2.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.928e-05/0.1462, allocations: 112.3 kB / 496.6 MB, free: 2.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.07e-05/0.1462, allocations: 67.02 kB / 496.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.1462, allocations: 0 / 496.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1464, allocations: 326.8 kB / 497 MB, free: 1.973 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.482e-05/0.1465, allocations: 43.97 kB / 497 MB, free: 1.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.1466, allocations: 88.78 kB / 497.1 MB, free: 1.832 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.1468, allocations: 131.4 kB / 497.2 MB, free: 1.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1468, allocations: 0 / 497.2 MB, free: 1.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003702/0.1472, allocations: 210.2 kB / 497.5 MB, free: 1.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1472, allocations: 4 kB / 497.5 MB, free: 1.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.1473, allocations: 7.938 kB / 497.5 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.1474, allocations: 40.83 kB / 497.5 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.1476, allocations: 31.98 kB / 497.5 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.1491, allocations: 1.561 MB / 499.1 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.138e-05/0.1492, allocations: 11.97 kB / 499.1 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.1492, allocations: 4 kB / 499.1 MB, free: 15.68 MB / 346.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.0001248/0.1493, allocations: 137.7 kB / 499.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.1494, allocations: 15.81 kB / 499.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/0.1494, allocations: 17.19 kB / 499.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1494, allocations: 4 kB / 499.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1495, allocations: 64 / 499.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.1495, allocations: 4 kB / 499.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/0.1503, allocations: 0.5544 MB / 499.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1503, allocations: 4.031 kB / 499.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.1505, allocations: 35.97 kB / 499.9 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.1506, allocations: 36.78 kB / 499.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.1506, allocations: 0 / 499.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.1517, allocations: 1.382 MB / 0.4895 GB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.1518, allocations: 11.86 kB / 0.4896 GB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/0.1523, allocations: 347.4 kB / 0.4899 GB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.1523, allocations: 89.03 kB / 0.49 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.1524, allocations: 4 kB / 0.49 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.326e-05/0.1525, allocations: 8 kB / 0.49 GB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.1525, allocations: 15.92 kB / 0.49 GB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.1525, allocations: 7.984 kB / 0.49 GB, free: 12.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.051e-05/0.1526, allocations: 115.3 kB / 0.4901 GB, free: 12.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1526, allocations: 0 / 0.4901 GB, free: 12.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003029/0.1529, allocations: 36 kB / 0.4902 GB, free: 12.62 MB / 346.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.0001344/0.1531, allocations: 107.2 kB / 0.4903 GB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.1536, allocations: 269.5 kB / 0.4905 GB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1536, allocations: 0 / 0.4905 GB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.1539, allocations: 198.6 kB / 0.4907 GB, free: 12.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.1543, allocations: 24.39 kB / 0.4907 GB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008383/0.1551, allocations: 0.5292 MB / 0.4912 GB, free: 11.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.1555, allocations: 0.7207 MB / 0.4919 GB, free: 10.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.241e-05/0.1556, allocations: 13.42 kB / 0.492 GB, free: 10.69 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.1556, allocations: 15.44 kB / 0.492 GB, free: 10.67 MB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.1556, allocations: 0 / 0.492 GB, free: 10.67 MB / 346.7 MB Notification: Performance of Templates: time 0.004615/0.1602, allocations: 1.503 MB / 0.4934 GB, free: 9.172 MB / 346.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/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