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.0009583/0.0009583, allocations: 91.17 kB / 17.95 MB, free: 5.648 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.001189/0.001189, allocations: 176.1 kB / 18.86 MB, free: 4.777 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.935/1.935, allocations: 205.4 MB / 225 MB, free: 13.06 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.0005243/0.0005243, allocations: 8 kB / 282 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1213, allocations: 47.58 MB / 329.6 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003376/0.1247, allocations: 2.112 MB / 331.7 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1269, allocations: 1.004 MB / 332.7 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003095/0.1272, allocations: 3.938 kB / 332.7 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002604/0.1275, allocations: 35.77 kB / 332.8 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008003/0.1283, allocations: 131.3 kB / 332.9 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/0.1288, allocations: 155.8 kB / 333 MB, free: 316 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000666/0.1295, allocations: 454.5 kB / 333.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.1297, allocations: 81.14 kB / 333.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004345/0.1302, allocations: 183.4 kB / 333.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004734/0.1307, allocations: 223.1 kB / 334 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1308, allocations: 20 kB / 334 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003064/0.1311, allocations: 95.92 kB / 334.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.1313, allocations: 99.64 kB / 334.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.1316, allocations: 188.9 kB / 334.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006123/0.1322, allocations: 355.2 kB / 334.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1322, allocations: 0 / 334.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1322, allocations: 4 kB / 334.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.1322, allocations: 0 / 334.7 MB, free: 14.63 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.001476/0.1337, allocations: 0.616 MB / 335.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.1338, allocations: 8.031 kB / 335.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004152/0.1342, allocations: 60.44 kB / 335.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.1348, allocations: 315.5 kB / 335.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.135, allocations: 88.61 kB / 335.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-05/0.1351, allocations: 32.38 kB / 335.8 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009301/0.136, allocations: 425 kB / 336.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.1361, allocations: 7.906 kB / 336.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.1361, allocations: 12 kB / 336.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1361, allocations: 8 kB / 336.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1372, allocations: 486.2 kB / 336.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.1394, allocations: 0.9775 MB / 337.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009659/0.1404, allocations: 424.5 kB / 338.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005041/0.1409, allocations: 246 kB / 338.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.849e-05/0.1409, allocations: 4.438 kB / 338.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.141, allocations: 43 kB / 338.4 MB, free: 10.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.324e-06/0.141, allocations: 0 / 338.4 MB, free: 10.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005778/0.1468, allocations: 2.23 MB / 340.6 MB, free: 8.395 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.1468, allocations: 81.67 kB / 340.7 MB, free: 8.297 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003743/0.1472, allocations: 259.1 kB / 341 MB, free: 8.035 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.1473, allocations: 37.7 kB / 341 MB, free: 7.992 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.1474, allocations: 141.1 kB / 341.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1476, allocations: 181.4 kB / 341.3 MB, free: 7.668 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.1477, allocations: 45.69 kB / 341.4 MB, free: 7.617 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1479, allocations: 342.8 kB / 341.7 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/0.1484, allocations: 209 kB / 341.9 MB, free: 7.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.1489, allocations: 252.6 kB / 342.2 MB, free: 6.812 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009113/0.1498, allocations: 404.4 kB / 342.5 MB, free: 6.414 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.1498, allocations: 0 / 342.5 MB, free: 6.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001352/0.1512, allocations: 0.629 MB / 343.2 MB, free: 5.773 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.1512, allocations: 7.938 kB / 343.2 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1512, allocations: 8 kB / 343.2 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008025/0.1521, allocations: 261.9 kB / 343.4 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000312/0.1524, allocations: 63.89 kB / 343.5 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004195/0.1566, allocations: 2.698 MB / 346.2 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000331/0.1569, allocations: 44.06 kB / 346.3 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.065e-05/0.157, allocations: 16 kB / 346.3 MB, free: 2.551 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.0002421/0.1572, allocations: 161.7 kB / 346.4 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.573e-05/0.1573, allocations: 27.62 kB / 346.5 MB, free: 2.355 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001427/0.1575, allocations: 59.3 kB / 346.5 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.1575, allocations: 7.938 kB / 346.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1575, allocations: 0 / 346.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1575, allocations: 0 / 346.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.16, allocations: 1.291 MB / 347.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1601, allocations: 0 / 347.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.1604, allocations: 71.92 kB / 347.9 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006799/0.1611, allocations: 240.6 kB / 348.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.1611, allocations: 15.98 kB / 348.1 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/0.1651, allocations: 2.608 MB / 350.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1652, allocations: 0 / 350.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.1672, allocations: 0.9729 MB / 351.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.1674, allocations: 160.6 kB / 351.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.287e-05/0.1675, allocations: 12 kB / 351.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.1678, allocations: 35.97 kB / 351.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.168, allocations: 76.33 kB / 352 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.1681, allocations: 15.98 kB / 352 MB, free: 12.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000271/0.1684, allocations: 196.6 kB / 352.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1684, allocations: 0 / 352.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000759/0.1691, allocations: 156 kB / 352.3 MB, free: 12.21 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.0003681/0.1695, allocations: 139.1 kB / 352.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.1712, allocations: 0.715 MB / 353.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1712, allocations: 4 kB / 353.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009156/0.1722, allocations: 483.6 kB / 353.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.1727, allocations: 40.61 kB / 353.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.1746, allocations: 1.009 MB / 354.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.1751, allocations: 0.7931 MB / 355.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.1752, allocations: 39.41 kB / 355.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1752, allocations: 0 / 355.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of Templates: time 0.01194/0.1872, allocations: 5.942 MB / 361.5 MB, free: 2.969 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