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.001189/0.001189, allocations: 101.5 kB / 17.8 MB, free: 5.676 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.001395/0.001395, allocations: 194 kB / 18.72 MB, free: 4.762 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.75/1.75, allocations: 205.1 MB / 224.6 MB, free: 12.46 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.001234/0.001234, allocations: 51.92 kB / 280.6 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1246, allocations: 46.63 MB / 327.2 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004377/0.129, allocations: 2.75 MB / 330 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1312, allocations: 1.14 MB / 331.1 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.1314, allocations: 4 kB / 331.1 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003159/0.1317, allocations: 63.59 kB / 331.2 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005798/0.1323, allocations: 163.2 kB / 331.4 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.1327, allocations: 211.7 kB / 331.6 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007885/0.1335, allocations: 0.6118 MB / 332.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.1338, allocations: 107.9 kB / 332.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.1343, allocations: 271 kB / 332.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004744/0.1348, allocations: 326.8 kB / 332.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.429e-05/0.1349, allocations: 32 kB / 332.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000263/0.1351, allocations: 107.9 kB / 333 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.1354, allocations: 131.5 kB / 333.1 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/0.1356, allocations: 230.8 kB / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005132/0.1361, allocations: 475.2 kB / 333.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1362, allocations: 0 / 333.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1362, allocations: 0 / 333.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.1362, allocations: 4 kB / 333.8 MB, free: 14.27 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.001848/0.138, allocations: 0.7954 MB / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.1381, allocations: 8.031 kB / 334.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003894/0.1385, allocations: 72.34 kB / 334.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000666/0.1392, allocations: 358.4 kB / 335.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.1393, allocations: 96.95 kB / 335.1 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1395, allocations: 40.38 kB / 335.2 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.1406, allocations: 0.5684 MB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.1406, allocations: 3.984 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.227e-05/0.1407, allocations: 16 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1407, allocations: 8 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.1422, allocations: 0.6363 MB / 336.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.1448, allocations: 1.287 MB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.146, allocations: 0.5481 MB / 338.3 MB, free: 9.672 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006241/0.1466, allocations: 314.4 kB / 338.6 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.915e-05/0.1467, allocations: 16.48 kB / 338.6 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.1467, allocations: 39.12 kB / 338.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 2.094e-06/0.1467, allocations: 0 / 338.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006908/0.1536, allocations: 2.864 MB / 341.5 MB, free: 6.312 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.1537, allocations: 89.61 kB / 341.6 MB, free: 6.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.1541, allocations: 338.8 kB / 341.9 MB, free: 5.859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.57e-05/0.1542, allocations: 45.7 kB / 341.9 MB, free: 5.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1543, allocations: 161.6 kB / 342.1 MB, free: 5.648 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.1545, allocations: 224.8 kB / 342.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.1548, allocations: 122.2 kB / 342.4 MB, free: 5.301 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1549, allocations: 346.8 kB / 342.8 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006234/0.1555, allocations: 293.2 kB / 343.1 MB, free: 4.668 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006364/0.1562, allocations: 358.4 kB / 343.4 MB, free: 4.305 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.1572, allocations: 0.5187 MB / 343.9 MB, free: 3.781 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1573, allocations: 0 / 343.9 MB, free: 3.781 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00173/0.159, allocations: 0.885 MB / 344.8 MB, free: 2.887 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.159, allocations: 11.88 kB / 344.8 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.159, allocations: 3.984 kB / 344.8 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.1601, allocations: 473.6 kB / 345.3 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.1605, allocations: 91.86 kB / 345.4 MB, free: 2.316 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.1619, allocations: 1.071 MB / 346.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.1624, allocations: 63.97 kB / 346.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/0.1624, allocations: 23.98 kB / 346.5 MB, free: 1.133 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.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.0002432/0.1627, allocations: 189.7 kB / 346.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.816e-05/0.1628, allocations: 39.53 kB / 346.8 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.1629, allocations: 63.77 kB / 346.8 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1629, allocations: 4 kB / 346.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.163, allocations: 0 / 346.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.163, allocations: 3.984 kB / 346.8 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.1661, allocations: 1.766 MB / 348.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1662, allocations: 0 / 348.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.1665, allocations: 79.88 kB / 348.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009506/0.1675, allocations: 456.5 kB / 349.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-05/0.1675, allocations: 19.98 kB / 349.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.1688, allocations: 1.032 MB / 350.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1688, allocations: 3.984 kB / 350.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/0.1713, allocations: 1.305 MB / 351.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.1716, allocations: 184.6 kB / 351.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.984e-05/0.1717, allocations: 16 kB / 351.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.1721, allocations: 51.94 kB / 351.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/0.1723, allocations: 80.42 kB / 351.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.513e-05/0.1724, allocations: 31.97 kB / 351.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003376/0.1727, allocations: 241.9 kB / 352.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1727, allocations: 0 / 352.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00057/0.1733, allocations: 148 kB / 352.2 MB, free: 11.3 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.0003573/0.1737, allocations: 147.1 kB / 352.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.1754, allocations: 0.704 MB / 353.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1754, allocations: 0 / 353.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008555/0.1762, allocations: 396.1 kB / 353.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.1768, allocations: 44.88 kB / 353.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.1796, allocations: 1.335 MB / 354.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/0.1803, allocations: 0.8134 MB / 355.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.1804, allocations: 51.41 kB / 355.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1804, allocations: 0 / 355.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of Templates: time 0.01043/0.1909, allocations: 7.184 MB / 362.9 MB, free: 0.5586 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++ -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