Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008721/0.0008722, allocations: 92.14 kB / 16.33 MB, free: 5.938 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.0009529/0.000953, allocations: 188.2 kB / 17.22 MB, free: 5.859 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.724/1.724, allocations: 205.4 MB / 223.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4155/0.4155, allocations: 43.56 MB / 315.2 MB, free: 9.156 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.0005838/0.000584, allocations: 8 kB / 384.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1416, allocations: 58.86 MB / 443.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004047/0.1457, allocations: 3.368 MB / 446.8 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.1483, allocations: 1.248 MB / 448 MB, free: 8.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002709/0.1486, allocations: 11.94 kB / 448 MB, free: 8.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.1488, allocations: 79.39 kB / 448.1 MB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.1492, allocations: 178.6 kB / 448.3 MB, free: 8.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006955/0.1499, allocations: 259.6 kB / 448.5 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008637/0.1508, allocations: 0.9053 MB / 449.4 MB, free: 7.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.1511, allocations: 144.9 kB / 449.6 MB, free: 7.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004726/0.1516, allocations: 394.5 kB / 450 MB, free: 6.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005137/0.1521, allocations: 430.4 kB / 450.4 MB, free: 6.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.1e-05/0.1522, allocations: 40 kB / 450.4 MB, free: 6.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.1524, allocations: 87.95 kB / 450.5 MB, free: 6.148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.1526, allocations: 155.4 kB / 450.7 MB, free: 5.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.1527, allocations: 141.3 kB / 450.8 MB, free: 5.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006322/0.1534, allocations: 0.6469 MB / 451.4 MB, free: 5.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.1534, allocations: 8 kB / 451.5 MB, free: 5.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1534, allocations: 0 / 451.5 MB, free: 5.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.1534, allocations: 4 kB / 451.5 MB, free: 5.191 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001862/0.1553, allocations: 0.9937 MB / 452.5 MB, free: 4.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1553, allocations: 8.031 kB / 452.5 MB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.1555, allocations: 79.06 kB / 452.5 MB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.156, allocations: 412.7 kB / 452.9 MB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.1561, allocations: 49.31 kB / 453 MB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.1562, allocations: 71.89 kB / 453.1 MB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.1576, allocations: 0.8411 MB / 453.9 MB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.1577, allocations: 3.906 kB / 453.9 MB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.1578, allocations: 28 kB / 453.9 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.1578, allocations: 19.95 kB / 453.9 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.1592, allocations: 0.7931 MB / 454.7 MB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2832/0.4425, allocations: 2.628 MB / 457.4 MB, free: 44.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.4437, allocations: 0.6454 MB / 458 MB, free: 44.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005937/0.4443, allocations: 395.2 kB / 458.4 MB, free: 44.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.06e-05/0.4444, allocations: 7.656 kB / 458.4 MB, free: 44.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.4444, allocations: 49.81 kB / 458.5 MB, free: 44.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.945e-06/0.4444, allocations: 3.625 kB / 458.5 MB, free: 44.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.006768/0.4512, allocations: 3.718 MB / 462.2 MB, free: 43.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.4513, allocations: 138.4 kB / 462.3 MB, free: 43.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004999/0.4518, allocations: 426 kB / 462.7 MB, free: 42.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.64e-05/0.4519, allocations: 51.11 kB / 462.8 MB, free: 42.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.4521, allocations: 281.8 kB / 463.1 MB, free: 42.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002121/0.4523, allocations: 267 kB / 463.3 MB, free: 42.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.647e-05/0.4523, allocations: 29.89 kB / 463.3 MB, free: 42.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.4525, allocations: 370.3 kB / 463.7 MB, free: 42.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006993/0.4532, allocations: 396.5 kB / 464.1 MB, free: 42.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008209/0.454, allocations: 0.5605 MB / 464.7 MB, free: 42.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006676/0.4547, allocations: 345.5 kB / 465 MB, free: 42.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.4547, allocations: 0 / 465 MB, free: 42.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002407/0.4571, allocations: 1.285 MB / 466.3 MB, free: 41.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.4571, allocations: 6.375 kB / 466.3 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.4572, allocations: 8.891 kB / 466.3 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.4584, allocations: 0.7601 MB / 467.1 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/0.459, allocations: 154.7 kB / 467.2 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.4608, allocations: 2.688 MB / 469.9 MB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008402/0.4616, allocations: 197.6 kB / 470.1 MB, free: 39.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.368e-05/0.4617, allocations: 35.7 kB / 470.1 MB, free: 39.78 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003267/0.4621, allocations: 213.8 kB / 470.3 MB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.4622, allocations: 60.69 kB / 470.4 MB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.4624, allocations: 86.95 kB / 470.5 MB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.4625, allocations: 6.438 kB / 470.5 MB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/0.4625, allocations: 11.2 kB / 470.5 MB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4625, allocations: 6.562 kB / 470.5 MB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003447/0.4659, allocations: 2.198 MB / 472.7 MB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.466, allocations: 3.219 kB / 472.7 MB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004861/0.4665, allocations: 117.4 kB / 472.8 MB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.4675, allocations: 0.7215 MB / 473.5 MB, free: 38.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.794e-05/0.4676, allocations: 30.86 kB / 473.6 MB, free: 38.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/0.4693, allocations: 2.643 MB / 476.2 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4693, allocations: 3.938 kB / 476.2 MB, free: 36.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.4721, allocations: 1.804 MB / 478 MB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.4723, allocations: 221.3 kB / 478.2 MB, free: 35.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.4725, allocations: 28.5 kB / 478.3 MB, free: 35.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007388/0.4732, allocations: 177.2 kB / 478.4 MB, free: 34.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003141/0.4735, allocations: 173.8 kB / 478.6 MB, free: 34.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-05/0.4736, allocations: 35.19 kB / 478.6 MB, free: 34.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002971/0.4739, allocations: 283.6 kB / 478.9 MB, free: 34.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4739, allocations: 0 / 478.9 MB, free: 34.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008251/0.4747, allocations: 204.4 kB / 479.1 MB, free: 34.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002694/0.475, allocations: 164.1 kB / 479.3 MB, free: 34.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.4769, allocations: 0.9753 MB / 480.2 MB, free: 34.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.477, allocations: 1.062 kB / 480.2 MB, free: 34.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.478, allocations: 0.5095 MB / 480.8 MB, free: 34.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008908/0.4789, allocations: 104.6 kB / 480.9 MB, free: 34.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004356/0.4833, allocations: 2.603 MB / 483.5 MB, free: 32.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.4836, allocations: 0.9129 MB / 484.4 MB, free: 31.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.4838, allocations: 50.66 kB / 484.4 MB, free: 31.95 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4838, allocations: 0 / 484.4 MB, free: 31.95 MB / 382.1 MB Notification: Performance of Templates: time 0.02683/0.5107, allocations: 17.07 MB / 0.4897 GB, free: 28.07 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_ModelicaTest.Rotational.TestFrictionCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Rotational.TestFrictionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Rotational.TestFrictionCalcHelperMain.o] Error 1