Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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) 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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000874/0.0008738, allocations: 95.09 kB / 17.58 MB, free: 5.797 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.0009548/0.0009547, allocations: 182 kB / 18.48 MB, free: 5.254 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.799/1.799, allocations: 205.4 MB / 224.6 MB, free: 13.07 MB / 190.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.000473/0.0004731, allocations: 12 kB / 281.4 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1216, allocations: 47.58 MB / 329 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003328/0.125, allocations: 2.3 MB / 331.3 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.1272, allocations: 1.074 MB / 332.4 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.1274, allocations: 4 kB / 332.4 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.1277, allocations: 55.61 kB / 332.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005552/0.1282, allocations: 151.2 kB / 332.6 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.1286, allocations: 195.7 kB / 332.8 MB, free: 276 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006086/0.1292, allocations: 0.5612 MB / 333.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.1295, allocations: 102 kB / 333.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000416/0.1299, allocations: 259.2 kB / 333.7 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004438/0.1304, allocations: 299 kB / 334 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.653e-05/0.1304, allocations: 35.77 kB / 334 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002309/0.1307, allocations: 99.92 kB / 334.1 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.1309, allocations: 119.6 kB / 334.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.131, allocations: 97.45 kB / 334.3 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00047/0.1314, allocations: 463 kB / 334.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.1315, allocations: 0 / 334.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1315, allocations: 0 / 334.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.1315, allocations: 0 / 334.8 MB, free: 14.25 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001504/0.133, allocations: 0.7252 MB / 335.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.1331, allocations: 8.031 kB / 335.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003264/0.1334, allocations: 67.42 kB / 335.6 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.1339, allocations: 357.2 kB / 335.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1341, allocations: 96.39 kB / 336 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.324e-05/0.1342, allocations: 43.98 kB / 336 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.1353, allocations: 0.5566 MB / 336.6 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.1353, allocations: 0 / 336.6 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.976e-05/0.1354, allocations: 16 kB / 336.6 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.1354, allocations: 12 kB / 336.6 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.1368, allocations: 0.648 MB / 337.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002515/0.1393, allocations: 1.33 MB / 338.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.1405, allocations: 0.5524 MB / 339.2 MB, free: 9.668 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/0.1411, allocations: 333.7 kB / 339.5 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.511e-05/0.1412, allocations: 8.547 kB / 339.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.1412, allocations: 43.12 kB / 339.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.345e-06/0.1412, allocations: 0 / 339.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006668/0.1479, allocations: 2.961 MB / 342.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.148, allocations: 85.67 kB / 342.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/0.1484, allocations: 334.9 kB / 342.9 MB, free: 5.758 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.627e-05/0.1485, allocations: 45.64 kB / 343 MB, free: 5.707 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1487, allocations: 153.6 kB / 343.1 MB, free: 5.555 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.1489, allocations: 232.8 kB / 343.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.149, allocations: 16 kB / 343.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1491, allocations: 346.8 kB / 343.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005976/0.1497, allocations: 297.2 kB / 344 MB, free: 4.672 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006484/0.1504, allocations: 358.5 kB / 344.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005326/0.1509, allocations: 259.2 kB / 344.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.151, allocations: 0 / 344.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001881/0.1528, allocations: 0.9162 MB / 345.5 MB, free: 3.133 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.1529, allocations: 4 kB / 345.5 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.1529, allocations: 4 kB / 345.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.154, allocations: 469.9 kB / 346 MB, free: 2.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.1544, allocations: 91.81 kB / 346 MB, free: 2.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.1559, allocations: 1.087 MB / 347.1 MB, free: 1.461 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.1564, allocations: 79.98 kB / 347.2 MB, free: 1.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.488e-05/0.1565, allocations: 27.98 kB / 347.2 MB, free: 1.355 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003651/0.1568, allocations: 173.7 kB / 347.4 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.157, allocations: 43.52 kB / 347.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001711/0.1571, allocations: 59.78 kB / 347.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.1572, allocations: 15.94 kB / 347.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.1572, allocations: 4.062 kB / 347.5 MB, free: 1.051 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1572, allocations: 4 kB / 347.5 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003395/0.1606, allocations: 1.785 MB / 349.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1606, allocations: 0 / 349.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003713/0.161, allocations: 83.92 kB / 349.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009411/0.1619, allocations: 444.5 kB / 349.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.073e-05/0.162, allocations: 23.97 kB / 349.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.1632, allocations: 1.036 MB / 350.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1632, allocations: 4.031 kB / 350.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.1657, allocations: 1.313 MB / 352.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.166, allocations: 188.5 kB / 352.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.312e-05/0.1661, allocations: 16 kB / 352.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.1665, allocations: 75.94 kB / 352.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.1667, allocations: 100.3 kB / 352.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/0.1668, allocations: 19.98 kB / 352.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003328/0.1671, allocations: 241.9 kB / 352.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1671, allocations: 0 / 352.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006008/0.1678, allocations: 148 kB / 353 MB, free: 11.46 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003523/0.1681, allocations: 154.9 kB / 353.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.1699, allocations: 0.7197 MB / 353.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1699, allocations: 0 / 353.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008853/0.1708, allocations: 408 kB / 354.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.1714, allocations: 48.83 kB / 354.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.1745, allocations: 1.386 MB / 355.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.1751, allocations: 0.8134 MB / 356.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.1753, allocations: 47.41 kB / 356.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of SimCode: time 1.513e-06/0.1753, allocations: 0 / 356.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of Templates: time 0.01194/0.1872, allocations: 7.152 MB / 363.7 MB, free: 0.6602 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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 OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2CalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2CalcHelperMain.o] Error 1