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.0009576/0.0009575, allocations: 94.56 kB / 17.59 MB, free: 6.168 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.0009022/0.0009019, allocations: 183.7 kB / 18.47 MB, free: 5.336 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.806/1.806, allocations: 205.4 MB / 224.6 MB, free: 13.14 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.0004868/0.0004868, allocations: 12 kB / 281.4 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1311, allocations: 47.59 MB / 329 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002845/0.134, allocations: 1.953 MB / 330.9 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.1358, allocations: 0.9144 MB / 331.9 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.1359, allocations: 4 kB / 331.9 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.1361, allocations: 31.77 kB / 331.9 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004191/0.1366, allocations: 119.4 kB / 332 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.1369, allocations: 131.8 kB / 332.1 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.1373, allocations: 366.8 kB / 332.5 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.1375, allocations: 60.7 kB / 332.5 MB, free: 496 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.1377, allocations: 159.5 kB / 332.7 MB, free: 336 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002689/0.1379, allocations: 191.3 kB / 332.9 MB, free: 144 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.707e-05/0.138, allocations: 20 kB / 332.9 MB, free: 124 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.1382, allocations: 87.88 kB / 333 MB, free: 36 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1384, allocations: 71.78 kB / 333.1 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.013e-05/0.1384, allocations: 81.52 kB / 333.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003726/0.1388, allocations: 319.4 kB / 333.5 MB, free: 15.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1388, allocations: 4 kB / 333.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1388, allocations: 0 / 333.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1389, allocations: 0 / 333.5 MB, free: 15.56 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.001091/0.14, allocations: 0.577 MB / 334 MB, free: 14.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.14, allocations: 8.031 kB / 334 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000302/0.1403, allocations: 51.59 kB / 334.1 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.1408, allocations: 302.4 kB / 334.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.1409, allocations: 87.95 kB / 334.5 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.012e-05/0.141, allocations: 24 kB / 334.5 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007127/0.1417, allocations: 377.3 kB / 334.9 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.1418, allocations: 11.84 kB / 334.9 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.1418, allocations: 8 kB / 334.9 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.1418, allocations: 8 kB / 334.9 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009251/0.1427, allocations: 425.9 kB / 335.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.1449, allocations: 1.249 MB / 336.6 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000686/0.1456, allocations: 367 kB / 336.9 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.146, allocations: 192.8 kB / 337.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.97e-05/0.146, allocations: 8 kB / 337.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.1461, allocations: 30.56 kB / 337.1 MB, free: 11.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.1461, allocations: 0 / 337.1 MB, free: 11.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004803/0.1509, allocations: 1.953 MB / 339.1 MB, free: 9.594 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.151, allocations: 88.86 kB / 339.2 MB, free: 9.488 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.1513, allocations: 238.3 kB / 339.4 MB, free: 9.242 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.1513, allocations: 33.7 kB / 339.5 MB, free: 9.203 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.1515, allocations: 144.5 kB / 339.6 MB, free: 9.059 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1516, allocations: 142.1 kB / 339.7 MB, free: 8.918 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.623e-05/0.1516, allocations: 8 kB / 339.7 MB, free: 8.91 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1518, allocations: 334.8 kB / 340.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.1522, allocations: 176.7 kB / 340.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.1526, allocations: 241.8 kB / 340.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.1529, allocations: 164.8 kB / 340.6 MB, free: 7.988 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1529, allocations: 0 / 340.6 MB, free: 7.988 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001065/0.154, allocations: 0.5591 MB / 341.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.154, allocations: 8 kB / 341.2 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1541, allocations: 0 / 341.2 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007187/0.1548, allocations: 244.7 kB / 341.4 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.1551, allocations: 59.89 kB / 341.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003853/0.1589, allocations: 2.655 MB / 344.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.1592, allocations: 32.03 kB / 344.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.077e-05/0.1593, allocations: 20 kB / 344.2 MB, free: 4.27 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002096/0.1595, allocations: 153.8 kB / 344.4 MB, free: 4.109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.721e-05/0.1596, allocations: 27.62 kB / 344.4 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.1597, allocations: 39 kB / 344.4 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.1597, allocations: 12 kB / 344.4 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1597, allocations: 3.984 kB / 344.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.1597, allocations: 3.953 kB / 344.4 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.1616, allocations: 1.097 MB / 345.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1616, allocations: 0 / 345.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.1618, allocations: 47.91 kB / 345.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007089/0.1625, allocations: 232.9 kB / 345.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.394e-05/0.1626, allocations: 15.94 kB / 345.8 MB, free: 2.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00369/0.1663, allocations: 2.597 MB / 348.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.1663, allocations: 0 / 348.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.1679, allocations: 0.837 MB / 349.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.1681, allocations: 144.9 kB / 349.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.24e-05/0.1681, allocations: 12 kB / 349.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.1684, allocations: 31.97 kB / 349.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1686, allocations: 67.88 kB / 349.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.1686, allocations: 15.98 kB / 349.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.1688, allocations: 176.3 kB / 349.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1688, allocations: 0 / 349.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006648/0.1695, allocations: 144 kB / 349.8 MB, free: 14.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002716/0.1698, allocations: 135.2 kB / 350 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.1711, allocations: 0.6252 MB / 350.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1711, allocations: 0 / 350.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007882/0.1719, allocations: 433.5 kB / 351 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.1723, allocations: 40.05 kB / 351.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.1739, allocations: 0.8598 MB / 351.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.1744, allocations: 0.7764 MB / 352.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.1745, allocations: 31.42 kB / 352.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.1745, allocations: 0 / 352.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of Templates: time 0.009508/0.184, allocations: 5.197 MB / 357.9 MB, free: 6.211 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++ NOTFOUND -Winvalid-pch -O0 -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/c/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