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.009203/0.009203, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001549/0.001549, allocations: 192.1 kB / 16.79 MB, free: 5.809 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.513/1.513, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1999/0.1999, allocations: 9.101 MB / 299.7 MB, free: 1.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 60.09 kB / 361.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.135, allocations: 51.44 MB / 413.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.3134/0.4484, allocations: 39.67 MB / 453 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.4671, allocations: 8.423 MB / 461.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009766/0.4769, allocations: 146.8 kB / 461.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.4782, allocations: 348.5 kB / 461.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003637/0.4819, allocations: 1.432 MB / 463.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004819/0.4824, allocations: 156.1 kB / 463.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003593/0.486, allocations: 3.911 MB / 467.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.4872, allocations: 0.9734 MB / 468.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00108/0.4883, allocations: 0.8926 MB / 469.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.4897, allocations: 1.48 MB / 470.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003006/0.49, allocations: 156.7 kB / 470.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.4914, allocations: 0.8019 MB / 471.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008707/0.4923, allocations: 1.268 MB / 473 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.4935, allocations: 1.672 MB / 474.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004921/0.4984, allocations: 4.11 MB / 478.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.4984, allocations: 4 kB / 478.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4984, allocations: 0 / 478.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002027/0.4987, allocations: 0 / 478.8 MB, free: 7.965 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.01698/0.5156, allocations: 5.165 MB / 483.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.5157, allocations: 14.91 kB / 483.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007407/0.5231, allocations: 1.801 MB / 485.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003827/0.527, allocations: 1.498 MB / 487.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.5272, allocations: 181.1 kB / 487.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006711/0.5278, allocations: 226.8 kB / 487.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02006/0.5479, allocations: 8.953 MB / 496.6 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.631e-05/0.548, allocations: 32.23 kB / 496.6 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004205/0.5485, allocations: 114.4 kB / 496.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003559/0.552, allocations: 2.01 MB / 498.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02/0.5721, allocations: 7.962 MB / 0.4948 GB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05164/0.6237, allocations: 28.57 MB / 0.5227 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007236/0.631, allocations: 2.813 MB / 0.5255 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.6327, allocations: 0.9824 MB / 0.5264 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009674/0.6423, allocations: 6.472 MB / 0.5328 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.6424, allocations: 47.81 kB / 0.5328 GB, free: 14.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.326e-06/0.6424, allocations: 0 / 0.5328 GB, free: 14.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02287/0.6653, allocations: 9.744 MB / 0.5423 GB, free: 5.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008549/0.6739, allocations: 6.472 MB / 0.5486 GB, free: 14.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005245/0.6792, allocations: 3.023 MB / 0.5516 GB, free: 11.28 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003389/0.6795, allocations: 57.69 kB / 0.5516 GB, free: 11.21 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001841/0.6814, allocations: 2.35 MB / 0.5539 GB, free: 8.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008457/0.6822, allocations: 0.7208 MB / 0.5546 GB, free: 8.102 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/0.6836, allocations: 0.9407 MB / 0.5556 GB, free: 7.148 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.6838, allocations: 305.1 kB / 0.5559 GB, free: 6.848 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003054/0.6868, allocations: 1.544 MB / 0.5574 GB, free: 5.297 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004937/0.6918, allocations: 4.126 MB / 0.5614 GB, free: 15.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007226/0.699, allocations: 6.107 MB / 0.5674 GB, free: 8.531 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-05/0.6991, allocations: 28 kB / 0.5674 GB, free: 8.504 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01005/0.7092, allocations: 6.059 MB / 0.5733 GB, free: 2.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.439e-05/0.7093, allocations: 47.94 kB / 0.5733 GB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001044/0.7094, allocations: 88 kB / 0.5734 GB, free: 2.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.7108, allocations: 0.5832 MB / 0.574 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/0.7137, allocations: 1.029 MB / 0.575 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.325/1.039, allocations: 8.505 MB / 0.5833 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/1.043, allocations: 250.4 kB / 0.5835 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007637/1.044, allocations: 278.2 kB / 0.5838 GB, free: 119.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.004379/1.048, allocations: 1.738 MB / 0.5855 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007961/1.049, allocations: 264.9 kB / 0.5858 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005737/1.055, allocations: 2.906 MB / 0.5886 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001347/1.055, allocations: 33.81 kB / 0.5886 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/1.055, allocations: 6.375 kB / 0.5886 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.341e-05/1.055, allocations: 11.95 kB / 0.5886 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/1.073, allocations: 9.342 MB / 0.5978 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/1.073, allocations: 3.125 kB / 0.5978 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007949/1.074, allocations: 210.1 kB / 0.598 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001628/1.075, allocations: 0.6067 MB / 0.5986 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/1.075, allocations: 35.97 kB / 0.5986 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/1.087, allocations: 8.718 MB / 0.6071 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006846/1.094, allocations: 5.68 MB / 0.6127 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00917/1.103, allocations: 4.236 MB / 0.6168 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/1.105, allocations: 345.4 kB / 0.6171 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.106, allocations: 31.3 kB / 0.6172 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001898/1.108, allocations: 89.52 kB / 0.6172 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005187/1.108, allocations: 137 kB / 0.6174 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/1.109, allocations: 61.98 kB / 0.6174 GB, free: 102.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005289/1.114, allocations: 1.933 MB / 0.6193 GB, free: 102.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.114, allocations: 0 / 0.6193 GB, free: 102.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007692/1.122, allocations: 0.899 MB / 0.6202 GB, free: 102.1 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.0006491/1.122, allocations: 172 kB / 0.6204 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009839/1.132, allocations: 4.204 MB / 0.6245 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/1.132, allocations: 1.25 kB / 0.6245 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004464/1.137, allocations: 1.752 MB / 0.6262 GB, free: 99.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004933/1.142, allocations: 412.5 kB / 0.6266 GB, free: 99.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02274/1.164, allocations: 9.736 MB / 0.6361 GB, free: 93.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003898/1.168, allocations: 2.831 MB / 0.6388 GB, free: 92.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/1.169, allocations: 247.4 kB / 0.6391 GB, free: 92.65 MB / 446.1 MB Notification: Performance of SimCode: time 4.097e-06/1.169, allocations: 0 / 0.6391 GB, free: 92.65 MB / 446.1 MB Notification: Performance of Templates: time 0.1078/1.277, allocations: 98.98 MB / 0.7357 GB, free: 13.07 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