Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008916/0.0008916, allocations: 88.45 kB / 17.58 MB, free: 5.523 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.0008297/0.0008298, allocations: 187.5 kB / 18.48 MB, free: 5.082 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.671/1.671, 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.0004347/0.0004347, allocations: 12.78 kB / 281.4 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1166, allocations: 47.58 MB / 329 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002598/0.1193, allocations: 1.808 MB / 330.8 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1206, allocations: 0.6987 MB / 331.5 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.909e-05/0.1207, allocations: 0 / 331.5 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1209, allocations: 23.84 kB / 331.5 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.121, allocations: 63.47 kB / 331.6 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.1213, allocations: 83.84 kB / 331.7 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.1216, allocations: 243.5 kB / 331.9 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.1217, allocations: 56.42 kB / 331.9 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.122, allocations: 95.62 kB / 332 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.1221, allocations: 107.6 kB / 332.1 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.1222, allocations: 12 kB / 332.2 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.1223, allocations: 55.95 kB / 332.2 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.489e-05/0.1224, allocations: 43.81 kB / 332.3 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.557e-05/0.1225, allocations: 65.58 kB / 332.3 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.1227, allocations: 191.8 kB / 332.5 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1227, allocations: 0 / 332.5 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1227, allocations: 0 / 332.5 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.443e-06/0.1227, allocations: 0 / 332.5 MB, free: 0.5234 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009677/0.1237, allocations: 0.5392 MB / 333 MB, free: 15.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1237, allocations: 8.031 kB / 333.1 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.1238, allocations: 23.72 kB / 333.1 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/0.1241, allocations: 234.6 kB / 333.3 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.1241, allocations: 19.94 kB / 333.3 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.1242, allocations: 19.98 kB / 333.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.1247, allocations: 239.2 kB / 333.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1247, allocations: 0 / 333.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.1247, allocations: 12 kB / 333.6 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1248, allocations: 4 kB / 333.6 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.1252, allocations: 207.8 kB / 333.8 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009927/0.1262, allocations: 0.6836 MB / 334.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.1268, allocations: 214.5 kB / 334.7 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.1271, allocations: 100.8 kB / 334.8 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.1271, allocations: 7.938 kB / 334.8 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004117/0.1275, allocations: 171.5 kB / 335 MB, free: 13.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.1276, allocations: 4 kB / 335 MB, free: 13.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002307/0.1299, allocations: 1.21 MB / 336.2 MB, free: 12.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.1299, allocations: 51.41 kB / 336.2 MB, free: 12.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.1301, allocations: 202.8 kB / 336.4 MB, free: 12.28 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.1302, allocations: 37.64 kB / 336.5 MB, free: 12.24 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1303, allocations: 132.3 kB / 336.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.1304, allocations: 86.83 kB / 336.7 MB, free: 12.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.1304, allocations: 4 kB / 336.7 MB, free: 12.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.1306, allocations: 334.8 kB / 337 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.1309, allocations: 120.2 kB / 337.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.1311, allocations: 152.3 kB / 337.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.1314, allocations: 139 kB / 337.4 MB, free: 11.26 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1314, allocations: 4 kB / 337.4 MB, free: 11.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008415/0.1323, allocations: 413.2 kB / 337.8 MB, free: 10.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.1324, allocations: 37.69 kB / 337.9 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.1324, allocations: 0 / 337.9 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/0.1326, allocations: 68.89 kB / 337.9 MB, free: 10.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.1328, allocations: 59.91 kB / 338 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005071/0.1333, allocations: 0.6147 MB / 338.6 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.1336, allocations: 44.06 kB / 338.6 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.1336, allocations: 12 kB / 338.6 MB, free: 9.969 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000157/0.1338, allocations: 146 kB / 338.8 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.1338, allocations: 15.81 kB / 338.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.176e-05/0.1339, allocations: 29.88 kB / 338.8 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1339, allocations: 4 kB / 338.8 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.1339, allocations: 0 / 338.8 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1339, allocations: 3.984 kB / 338.8 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.135, allocations: 0.6902 MB / 339.5 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.135, allocations: 0 / 339.5 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002181/0.1352, allocations: 47.91 kB / 339.6 MB, free: 8.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001543/0.1354, allocations: 68.81 kB / 339.6 MB, free: 8.895 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.1354, allocations: 11.98 kB / 339.7 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004867/0.1359, allocations: 0.6033 MB / 340.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1359, allocations: 0 / 340.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.137, allocations: 0.531 MB / 340.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.791e-05/0.1371, allocations: 112.9 kB / 340.9 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.1372, allocations: 7.953 kB / 340.9 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.1375, allocations: 31.97 kB / 340.9 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.926e-05/0.1376, allocations: 43.88 kB / 341 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.1376, allocations: 11.98 kB / 341 MB, free: 7.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.1378, allocations: 139.2 kB / 341.1 MB, free: 7.344 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1378, allocations: 0 / 341.1 MB, free: 7.344 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.1382, allocations: 68 kB / 341.2 MB, free: 7.277 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002293/0.1384, allocations: 127.3 kB / 341.3 MB, free: 7.145 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008604/0.1393, allocations: 347.6 kB / 341.7 MB, free: 6.793 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1393, allocations: 0 / 341.7 MB, free: 6.793 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003286/0.1396, allocations: 147.9 kB / 341.8 MB, free: 6.648 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.14, allocations: 39.48 kB / 341.8 MB, free: 6.613 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.1415, allocations: 0.8302 MB / 342.7 MB, free: 5.75 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.1419, allocations: 0.744 MB / 343.4 MB, free: 4.98 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.004e-05/0.142, allocations: 19.44 kB / 343.4 MB, free: 4.961 MB / 286.1 MB Notification: Performance of SimCode: time 1.763e-06/0.142, allocations: 0 / 343.4 MB, free: 4.961 MB / 286.1 MB Notification: Performance of Templates: time 0.006418/0.1484, allocations: 3.773 MB / 347.2 MB, free: 1.18 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutchCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchCalcHelperMain.o] Error 1