Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008726/0.0008727, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 183.7 kB / 16.92 MB, free: 6.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 223.3 MB / 241 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2062/0.2062, allocations: 9.099 MB / 301.2 MB, free: 2.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003553, allocations: 8 kB / 364.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1241, allocations: 52.43 MB / 416.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2372/0.3613, allocations: 38.61 MB / 455.4 MB, free: 19.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01957/0.381, allocations: 8.374 MB / 463.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01101/0.392, allocations: 145.9 kB / 463.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.3935, allocations: 343.7 kB / 464.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004209/0.3977, allocations: 1.431 MB / 465.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005591/0.3983, allocations: 166.4 kB / 465.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004089/0.4024, allocations: 3.912 MB / 469.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.4038, allocations: 0.9657 MB / 470.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/0.4051, allocations: 0.8601 MB / 471.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.4069, allocations: 1.454 MB / 473 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003263/0.4072, allocations: 147.2 kB / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.4088, allocations: 0.7933 MB / 474 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.4099, allocations: 1.268 MB / 475.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001486/0.4114, allocations: 1.678 MB / 476.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004733/0.4162, allocations: 3.999 MB / 480.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.4162, allocations: 1.344 kB / 480.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.4162, allocations: 1.219 kB / 480.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001746/0.4164, allocations: 0 / 480.9 MB, free: 7.957 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01467/0.4311, allocations: 4.446 MB / 485.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.4311, allocations: 13.91 kB / 485.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008399/0.4395, allocations: 1.851 MB / 487.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004246/0.4438, allocations: 1.5 MB / 488.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.444, allocations: 172.2 kB / 488.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006762/0.4447, allocations: 232.6 kB / 489.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01936/0.4641, allocations: 8.953 MB / 498.1 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002167/0.4643, allocations: 33.72 kB / 498.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001141/0.4655, allocations: 105.5 kB / 498.2 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004303/0.4698, allocations: 2.013 MB / 0.4885 GB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02016/0.49, allocations: 7.968 MB / 0.4963 GB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05416/0.5442, allocations: 28.58 MB / 0.5242 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008701/0.553, allocations: 2.817 MB / 0.5269 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002107/0.5552, allocations: 0.9863 MB / 0.5279 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01206/0.5672, allocations: 6.464 MB / 0.5342 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/0.5673, allocations: 55.8 kB / 0.5343 GB, free: 15.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 5.371e-06/0.5674, allocations: 0 / 0.5343 GB, free: 15.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02552/0.5929, allocations: 9.761 MB / 0.5438 GB, free: 5.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008959/0.6019, allocations: 6.467 MB / 0.5501 GB, free: 14.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006901/0.6088, allocations: 3.031 MB / 0.5531 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003067/0.6092, allocations: 49.7 kB / 0.5531 GB, free: 11.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002234/0.6114, allocations: 2.35 MB / 0.5554 GB, free: 9.297 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.6126, allocations: 0.7208 MB / 0.5561 GB, free: 8.566 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.6137, allocations: 400.3 kB / 0.5565 GB, free: 8.168 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.6138, allocations: 301.1 kB / 0.5568 GB, free: 7.871 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003539/0.6173, allocations: 1.547 MB / 0.5583 GB, free: 6.316 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006022/0.6234, allocations: 4.122 MB / 0.5623 GB, free: 0.918 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009513/0.6329, allocations: 6.113 MB / 0.5683 GB, free: 9.551 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001992/0.6332, allocations: 27.94 kB / 0.5683 GB, free: 9.523 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01379/0.647, allocations: 6.06 MB / 0.5742 GB, free: 3.445 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.6471, allocations: 42.5 kB / 0.5743 GB, free: 3.406 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001807/0.6473, allocations: 92 kB / 0.5744 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/0.6489, allocations: 0.5827 MB / 0.5749 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003533/0.6525, allocations: 1.025 MB / 0.5759 GB, free: 1.699 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2915/0.944, allocations: 8.505 MB / 0.5842 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004719/0.9487, allocations: 251.5 kB / 0.5845 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006437/0.9494, allocations: 280.9 kB / 0.5847 GB, free: 116.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (554): * Single equations (assignments): 547 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.003446/0.9528, allocations: 1.735 MB / 0.5864 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004772/0.9533, allocations: 271.1 kB / 0.5867 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004868/0.9582, allocations: 2.905 MB / 0.5895 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.9583, allocations: 35.09 kB / 0.5896 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.9583, allocations: 7.688 kB / 0.5896 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.9584, allocations: 14.75 kB / 0.5896 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.9729, allocations: 9.324 MB / 0.5987 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.973, allocations: 4.594 kB / 0.5987 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007481/0.9737, allocations: 221 kB / 0.5989 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.9752, allocations: 0.61 MB / 0.5995 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-05/0.9753, allocations: 36.83 kB / 0.5995 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008979/0.9843, allocations: 8.731 MB / 0.6081 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005384/0.9897, allocations: 5.676 MB / 0.6136 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007888/0.9976, allocations: 4.234 MB / 0.6177 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/0.9991, allocations: 360.9 kB / 0.6181 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004585/0.9996, allocations: 32.62 kB / 0.6181 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/1.001, allocations: 85.27 kB / 0.6182 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004118/1.001, allocations: 136.1 kB / 0.6183 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/1.001, allocations: 58.98 kB / 0.6184 GB, free: 101.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004932/1.006, allocations: 1.937 MB / 0.6203 GB, free: 100.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.71e-07/1.006, allocations: 0 / 0.6203 GB, free: 100.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00655/1.013, allocations: 0.8998 MB / 0.6212 GB, free: 100.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 118 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,15,56.0%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006142/1.014, allocations: 175.1 kB / 0.6213 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01035/1.024, allocations: 4.213 MB / 0.6254 GB, free: 98.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/1.024, allocations: 0 / 0.6254 GB, free: 98.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003447/1.027, allocations: 1.742 MB / 0.6271 GB, free: 97.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004547/1.032, allocations: 421 kB / 0.6275 GB, free: 97.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/1.054, allocations: 9.757 MB / 0.6371 GB, free: 92.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/1.057, allocations: 2.841 MB / 0.6398 GB, free: 90.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009656/1.058, allocations: 245.3 kB / 0.6401 GB, free: 90.94 MB / 446.1 MB Notification: Performance of SimCode: time 1.673e-06/1.058, allocations: 0 / 0.6401 GB, free: 90.94 MB / 446.1 MB Notification: Performance of Templates: time 0.1141/1.172, allocations: 98.26 MB / 0.736 GB, free: 12.71 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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 OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelectionCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelectionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelectionCalcHelperMain.o] Error 1