Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 107.8 kB / 17.81 MB, free: 5.559 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.001131/0.001131, allocations: 197.9 kB / 18.73 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.753/1.753, 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.001444/0.001444, allocations: 47.94 kB / 280.6 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1279, allocations: 46.61 MB / 327.2 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005344/0.1333, allocations: 2.388 MB / 329.6 MB, free: 2.496 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.1358, allocations: 0.9686 MB / 330.6 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003361/0.1362, allocations: 4 kB / 330.6 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.1366, allocations: 39.66 kB / 330.6 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006702/0.1373, allocations: 103.5 kB / 330.7 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.1378, allocations: 155.8 kB / 330.9 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.1384, allocations: 398.8 kB / 331.3 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.1387, allocations: 64.69 kB / 331.3 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005354/0.1392, allocations: 171.4 kB / 331.5 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006632/0.1399, allocations: 199.3 kB / 331.7 MB, free: 416 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.1401, allocations: 20 kB / 331.7 MB, free: 396 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003702/0.1404, allocations: 103.9 kB / 331.8 MB, free: 292 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.1407, allocations: 79.72 kB / 331.9 MB, free: 212 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004074/0.1411, allocations: 151.2 kB / 332.1 MB, free: 60 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000666/0.1418, allocations: 323.5 kB / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1418, allocations: 0 / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.1418, allocations: 4 kB / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.13e-05/0.1419, allocations: 4 kB / 332.4 MB, free: 15.73 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002071/0.1439, allocations: 0.6239 MB / 333 MB, free: 15.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.195e-05/0.144, allocations: 12.03 kB / 333 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004687/0.1445, allocations: 52.48 kB / 333.1 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006437/0.1452, allocations: 303.7 kB / 333.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.1453, allocations: 88.52 kB / 333.4 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.989e-05/0.1454, allocations: 24.38 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009649/0.1464, allocations: 385.3 kB / 333.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.1465, allocations: 0 / 333.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.1465, allocations: 16 kB / 333.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1465, allocations: 8 kB / 333.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.1478, allocations: 413.9 kB / 334.3 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.1504, allocations: 1.23 MB / 335.5 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008021/0.1512, allocations: 362.3 kB / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004432/0.1517, allocations: 196.8 kB / 336 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.325e-05/0.1517, allocations: 4 kB / 336.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.1518, allocations: 34.56 kB / 336.1 MB, free: 11.81 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.344e-06/0.1518, allocations: 0 / 336.1 MB, free: 11.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.005017/0.1568, allocations: 1.926 MB / 338 MB, free: 9.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/0.1569, allocations: 92.86 kB / 338.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/0.1573, allocations: 246.1 kB / 338.3 MB, free: 9.406 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.186e-05/0.1573, allocations: 37.7 kB / 338.4 MB, free: 9.363 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1575, allocations: 132.6 kB / 338.5 MB, free: 9.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.1576, allocations: 149.9 kB / 338.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.1578, allocations: 82.11 kB / 338.7 MB, free: 8.996 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.158, allocations: 330.8 kB / 339.1 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.1584, allocations: 168.8 kB / 339.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004476/0.1588, allocations: 237.8 kB / 339.5 MB, free: 8.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007172/0.1595, allocations: 351.1 kB / 339.8 MB, free: 7.891 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1596, allocations: 0 / 339.8 MB, free: 7.891 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001177/0.1607, allocations: 0.559 MB / 340.4 MB, free: 7.324 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1608, allocations: 4.125 kB / 340.4 MB, free: 7.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1608, allocations: 4 kB / 340.4 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000759/0.1616, allocations: 248.6 kB / 340.6 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.1618, allocations: 55.91 kB / 340.7 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003888/0.1657, allocations: 2.64 MB / 343.3 MB, free: 4.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.166, allocations: 27.97 kB / 343.3 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.166, allocations: 16 kB / 343.3 MB, free: 4.199 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.1663, allocations: 153.8 kB / 343.5 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.298e-05/0.1663, allocations: 27.66 kB / 343.5 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.166e-05/0.1664, allocations: 42.98 kB / 343.6 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1665, allocations: 8 kB / 343.6 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1665, allocations: 0 / 343.6 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1665, allocations: 0 / 343.6 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.1683, allocations: 1.104 MB / 344.7 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1683, allocations: 0 / 344.7 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.1686, allocations: 47.91 kB / 344.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006791/0.1693, allocations: 236.9 kB / 345 MB, free: 2.516 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/0.1693, allocations: 11.98 kB / 345 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003773/0.1731, allocations: 2.597 MB / 347.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1731, allocations: 0 / 347.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.1748, allocations: 0.8257 MB / 348.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.175, allocations: 140.8 kB / 348.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.175, allocations: 8 kB / 348.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.1753, allocations: 19.98 kB / 348.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.1755, allocations: 63.88 kB / 348.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.445e-05/0.1755, allocations: 16 kB / 348.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.1758, allocations: 184.3 kB / 348.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1758, allocations: 0 / 348.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.1765, allocations: 140 kB / 348.9 MB, free: 14.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002892/0.1768, allocations: 139.2 kB / 349.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.1781, allocations: 0.6214 MB / 349.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1781, allocations: 0 / 349.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006944/0.1788, allocations: 429.3 kB / 350.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.1792, allocations: 39.88 kB / 350.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.1807, allocations: 0.8434 MB / 351 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.1811, allocations: 0.7764 MB / 351.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.1812, allocations: 35.42 kB / 351.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1812, allocations: 0 / 351.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of Templates: time 0.00807/0.1893, allocations: 5.206 MB / 357 MB, free: 6.164 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3CalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.o] Error 1