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.0009335/0.0009333, allocations: 96.06 kB / 17.96 MB, free: 5.371 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.001251/0.001251, allocations: 180.2 kB / 18.87 MB, free: 4.641 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.914/1.914, allocations: 205.4 MB / 225 MB, free: 12.93 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.0004774/0.0004779, allocations: 8 kB / 282 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1251, allocations: 47.59 MB / 329.6 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003608/0.1287, allocations: 2.396 MB / 332 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.1313, allocations: 1.117 MB / 333.1 MB, free: 208 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.1315, allocations: 7.938 kB / 333.1 MB, free: 200 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.1318, allocations: 55.67 kB / 333.2 MB, free: 144 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.1324, allocations: 163.1 kB / 333.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.1328, allocations: 215.7 kB / 333.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006299/0.1334, allocations: 0.6157 MB / 334.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.1337, allocations: 112 kB / 334.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.1341, allocations: 259 kB / 334.5 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.1345, allocations: 314.9 kB / 334.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.053e-05/0.1346, allocations: 28 kB / 334.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.1348, allocations: 103.9 kB / 335 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.135, allocations: 119.6 kB / 335.1 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.1352, allocations: 252.5 kB / 335.3 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000481/0.1357, allocations: 471 kB / 335.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1357, allocations: 0 / 335.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1357, allocations: 0 / 335.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1357, allocations: 4 kB / 335.8 MB, free: 13.51 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.001589/0.1373, allocations: 0.7215 MB / 336.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.1374, allocations: 8.031 kB / 336.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003439/0.1377, allocations: 64.36 kB / 336.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.1383, allocations: 358.4 kB / 336.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.1384, allocations: 96.95 kB / 337 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.1385, allocations: 48.36 kB / 337.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.1396, allocations: 0.5761 MB / 337.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1396, allocations: 0 / 337.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.314e-05/0.1397, allocations: 16 kB / 337.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.1397, allocations: 12 kB / 337.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.141, allocations: 0.6519 MB / 338.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.1436, allocations: 1.314 MB / 339.6 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.1448, allocations: 0.5638 MB / 340.2 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/0.1454, allocations: 330.4 kB / 340.5 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.712e-05/0.1455, allocations: 12.69 kB / 340.5 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.1456, allocations: 39.06 kB / 340.6 MB, free: 8.527 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.653e-06/0.1456, allocations: 0 / 340.6 MB, free: 8.527 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.007176/0.1528, allocations: 2.969 MB / 343.6 MB, free: 5.438 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.1528, allocations: 89.61 kB / 343.6 MB, free: 5.332 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/0.1533, allocations: 338.8 kB / 344 MB, free: 4.984 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.1534, allocations: 45.7 kB / 344 MB, free: 4.934 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.1535, allocations: 161.6 kB / 344.2 MB, free: 4.773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/0.1537, allocations: 232.7 kB / 344.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.76e-05/0.1538, allocations: 53.69 kB / 344.5 MB, free: 4.484 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1539, allocations: 354.8 kB / 344.8 MB, free: 4.129 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006075/0.1546, allocations: 301.2 kB / 345.1 MB, free: 3.836 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007091/0.1553, allocations: 354.5 kB / 345.4 MB, free: 3.477 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.1566, allocations: 0.5344 MB / 346 MB, free: 2.938 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1566, allocations: 3.938 kB / 346 MB, free: 2.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001784/0.1584, allocations: 0.8968 MB / 346.9 MB, free: 2.027 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.1584, allocations: 11.94 kB / 346.9 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.1584, allocations: 0 / 346.9 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.1595, allocations: 477.6 kB / 347.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000367/0.1599, allocations: 83.89 kB / 347.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.1613, allocations: 1.083 MB / 348.5 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.1619, allocations: 76 kB / 348.6 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-05/0.1619, allocations: 27.98 kB / 348.6 MB, free: 260 kB / 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.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003059/0.1622, allocations: 181.7 kB / 348.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.1624, allocations: 39.53 kB / 348.8 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.1626, allocations: 67.84 kB / 348.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.1626, allocations: 8 kB / 348.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.1626, allocations: 0 / 348.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.1626, allocations: 3.984 kB / 348.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.1662, allocations: 1.789 MB / 350.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1662, allocations: 0 / 350.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.1665, allocations: 91.88 kB / 350.8 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009553/0.1675, allocations: 452.5 kB / 351.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.1676, allocations: 19.98 kB / 351.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.1689, allocations: 1.04 MB / 352.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1689, allocations: 0 / 352.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.1715, allocations: 1.321 MB / 353.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.1718, allocations: 188.5 kB / 353.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.577e-05/0.1719, allocations: 16 kB / 353.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/0.1723, allocations: 72 kB / 353.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.1725, allocations: 84.36 kB / 354 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.902e-05/0.1726, allocations: 23.97 kB / 354 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003174/0.1729, allocations: 249.9 kB / 354.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1729, allocations: 4 kB / 354.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000529/0.1735, allocations: 140 kB / 354.4 MB, free: 10.34 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003152/0.1738, allocations: 151.1 kB / 354.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.1755, allocations: 0.7158 MB / 355.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1755, allocations: 4 kB / 355.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008256/0.1763, allocations: 404.1 kB / 355.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000518/0.1769, allocations: 52.25 kB / 355.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002866/0.1798, allocations: 1.437 MB / 357.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.1802, allocations: 0.8173 MB / 357.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.1804, allocations: 47.41 kB / 358 MB, free: 6.656 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1804, allocations: 0 / 358 MB, free: 6.656 MB / 302.1 MB Notification: Performance of Templates: time 0.01035/0.1907, allocations: 7.132 MB / 365.1 MB, free: 15.52 MB / 318.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++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/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