Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 105.5 kB / 17.81 MB, free: 5.695 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.001596/0.001597, allocations: 190 kB / 18.72 MB, free: 4.781 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.763/1.763, allocations: 205.1 MB / 224.6 MB, free: 12.48 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.001774/0.001774, allocations: 47.92 kB / 280.6 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1226, allocations: 46.64 MB / 327.2 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004347/0.127, allocations: 2.458 MB / 329.7 MB, free: 2.418 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.129, allocations: 1.019 MB / 330.7 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.1291, allocations: 7.938 kB / 330.7 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.1294, allocations: 35.7 kB / 330.8 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004861/0.1299, allocations: 127.3 kB / 330.9 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003251/0.1302, allocations: 163.8 kB / 331.1 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.1307, allocations: 446.5 kB / 331.5 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.1309, allocations: 89.12 kB / 331.6 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.1312, allocations: 187.4 kB / 331.8 MB, free: 360 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.1315, allocations: 235.2 kB / 332 MB, free: 124 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-05/0.1316, allocations: 24 kB / 332 MB, free: 100 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.1318, allocations: 95.88 kB / 332.1 MB, free: 4 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.132, allocations: 95.7 kB / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.1322, allocations: 171.1 kB / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004294/0.1326, allocations: 363.4 kB / 332.7 MB, free: 15.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.1326, allocations: 4 kB / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1327, allocations: 4 kB / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1327, allocations: 0 / 332.7 MB, free: 15.38 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001354/0.134, allocations: 0.6705 MB / 333.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.1341, allocations: 12.03 kB / 333.4 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003455/0.1344, allocations: 52.55 kB / 333.5 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.1349, allocations: 311.5 kB / 333.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.135, allocations: 92.61 kB / 333.9 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.75e-05/0.1351, allocations: 36.28 kB / 333.9 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008007/0.1359, allocations: 417.1 kB / 334.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.136, allocations: 3.938 kB / 334.3 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.136, allocations: 12 kB / 334.3 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.136, allocations: 4 kB / 334.3 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1371, allocations: 474.3 kB / 334.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.1389, allocations: 0.9735 MB / 335.8 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000851/0.1398, allocations: 400.5 kB / 336.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004814/0.1402, allocations: 238 kB / 336.4 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.1403, allocations: 8.609 kB / 336.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1403, allocations: 46.94 kB / 336.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.1403, allocations: 0 / 336.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005215/0.1456, allocations: 2.164 MB / 338.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.247e-05/0.1457, allocations: 85.67 kB / 338.7 MB, free: 9.109 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003513/0.146, allocations: 259.1 kB / 338.9 MB, free: 8.848 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.1461, allocations: 37.7 kB / 339 MB, free: 8.805 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1462, allocations: 137 kB / 339.1 MB, free: 8.664 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.1463, allocations: 177.5 kB / 339.3 MB, free: 8.488 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.1465, allocations: 94.14 kB / 339.4 MB, free: 8.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1467, allocations: 342.8 kB / 339.7 MB, free: 8.047 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.1471, allocations: 201 kB / 339.9 MB, free: 7.848 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.1476, allocations: 244.6 kB / 340.1 MB, free: 7.602 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008003/0.1484, allocations: 392.3 kB / 340.5 MB, free: 7.215 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1484, allocations: 4.031 kB / 340.5 MB, free: 7.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001303/0.1497, allocations: 0.6096 MB / 341.1 MB, free: 6.59 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.1497, allocations: 7.938 kB / 341.1 MB, free: 6.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.1498, allocations: 7.969 kB / 341.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000771/0.1505, allocations: 257.9 kB / 341.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003007/0.1508, allocations: 67.89 kB / 341.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003956/0.1548, allocations: 2.691 MB / 344.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.1551, allocations: 36 kB / 344.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.1552, allocations: 19.98 kB / 344.2 MB, free: 3.379 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002867/0.1555, allocations: 153.8 kB / 344.4 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.54e-05/0.1556, allocations: 31.62 kB / 344.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.1557, allocations: 51.3 kB / 344.4 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1557, allocations: 7.938 kB / 344.5 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1557, allocations: 8.062 kB / 344.5 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1557, allocations: 3.984 kB / 344.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002367/0.1581, allocations: 1.268 MB / 345.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1581, allocations: 0 / 345.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.1585, allocations: 63.89 kB / 345.8 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006827/0.1592, allocations: 240.7 kB / 346 MB, free: 1.484 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.1592, allocations: 15.98 kB / 346 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003862/0.1631, allocations: 2.596 MB / 348.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1631, allocations: 3.938 kB / 348.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.1651, allocations: 0.9533 MB / 349.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.1653, allocations: 152.7 kB / 349.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.1654, allocations: 12 kB / 349.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.1657, allocations: 32.03 kB / 349.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.1659, allocations: 64.33 kB / 349.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.1659, allocations: 19.98 kB / 349.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002433/0.1662, allocations: 196.6 kB / 350.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1662, allocations: 0 / 350.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006845/0.1669, allocations: 156 kB / 350.2 MB, free: 13.12 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002776/0.1672, allocations: 143 kB / 350.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.1687, allocations: 0.7071 MB / 351.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1687, allocations: 3.938 kB / 351.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008092/0.1695, allocations: 467.8 kB / 351.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.17, allocations: 44.3 kB / 351.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.1716, allocations: 0.9537 MB / 352.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.1721, allocations: 0.797 MB / 353.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.1722, allocations: 39.41 kB / 353.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1722, allocations: 0 / 353.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Templates: time 0.009602/0.1818, allocations: 5.986 MB / 359.3 MB, free: 3.895 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1CalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1CalcHelperMain.o] Error 1