Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 100.1 kB / 15.88 MB, free: 12 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.001718/0.001718, allocations: 197.5 kB / 16.79 MB, free: 6.863 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.526/1.526, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2204/0.2204, allocations: 9.098 MB / 299.7 MB, free: 1.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 63.89 kB / 361.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1221, allocations: 51.43 MB / 413.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2694/0.3916, allocations: 31.55 MB / 444.9 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01835/0.4099, allocations: 7.07 MB / 452 MB, free: 21.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009242/0.4192, allocations: 118.8 kB / 452.1 MB, free: 21.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.4217, allocations: 0.6716 MB / 452.7 MB, free: 20.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006211/0.428, allocations: 1.912 MB / 454.7 MB, free: 20.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007204/0.4287, allocations: 130.2 kB / 454.8 MB, free: 20 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006679/0.4354, allocations: 5.698 MB / 460.5 MB, free: 18.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002581/0.438, allocations: 1.816 MB / 462.3 MB, free: 17.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.44, allocations: 1.202 MB / 463.5 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004032/0.444, allocations: 2.101 MB / 465.6 MB, free: 16.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001397/0.4454, allocations: 191.5 kB / 465.8 MB, free: 16.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002661/0.4481, allocations: 0.8052 MB / 466.6 MB, free: 16.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002077/0.4502, allocations: 1.804 MB / 468.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002846/0.4531, allocations: 2.375 MB / 470.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008526/0.4616, allocations: 5.788 MB / 476.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4616, allocations: 1.188 kB / 476.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4616, allocations: 3.938 kB / 476.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003609/0.462, allocations: 0 / 476.6 MB, free: 11.91 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.03298/0.495, allocations: 7.059 MB / 483.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/0.4951, allocations: 10.88 kB / 483.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01355/0.5086, allocations: 3.256 MB / 486.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00752/0.5162, allocations: 2.062 MB / 488.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006057/0.5169, allocations: 233.7 kB / 489.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002785/0.5197, allocations: 308.8 kB / 489.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03364/0.5533, allocations: 13.45 MB / 0.4911 GB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002757/0.5536, allocations: 55.45 kB / 0.4912 GB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00226/0.5559, allocations: 159.8 kB / 0.4913 GB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006169/0.5621, allocations: 3.09 MB / 0.4944 GB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02845/0.5906, allocations: 11.93 MB / 0.506 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08144/0.6721, allocations: 47.95 MB / 0.5529 GB, free: 9.859 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0129/0.685, allocations: 3.778 MB / 0.5565 GB, free: 5.824 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003003/0.688, allocations: 1.387 MB / 0.5579 GB, free: 4.426 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0193/0.7074, allocations: 9.21 MB / 0.5669 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.09e-05/0.7075, allocations: 59.55 kB / 0.5669 GB, free: 10.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 8.066e-06/0.7075, allocations: 4 kB / 0.567 GB, free: 10.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.03084/0.7384, allocations: 10.25 MB / 0.577 GB, free: 16 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3329/1.071, allocations: 147 kB / 0.5771 GB, free: 128.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01375/1.085, allocations: 5.136 MB / 0.5821 GB, free: 127.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004763/1.086, allocations: 51.95 kB / 0.5822 GB, free: 127.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00369/1.089, allocations: 3.939 MB / 0.586 GB, free: 125 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001353/1.091, allocations: 0.8315 MB / 0.5868 GB, free: 124.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005611/1.096, allocations: 1.602 MB / 0.5884 GB, free: 123.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.776e-05/1.096, allocations: 302 kB / 0.5887 GB, free: 123.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003968/1.1, allocations: 2.243 MB / 0.5909 GB, free: 122.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006263/1.107, allocations: 7.322 MB / 0.598 GB, free: 115.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/1.12, allocations: 10.39 MB / 0.6082 GB, free: 105.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003528/1.12, allocations: 51.94 kB / 0.6082 GB, free: 105.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02025/1.14, allocations: 9.19 MB / 0.6172 GB, free: 102.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003212/1.141, allocations: 82.81 kB / 0.6173 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005436/1.141, allocations: 179.2 kB / 0.6174 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004757/1.142, allocations: 241.4 kB / 0.6177 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007066/1.149, allocations: 1.838 MB / 0.6195 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006286/1.149, allocations: 349.5 kB / 0.6198 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007551/1.157, allocations: 377 kB / 0.6201 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/1.159, allocations: 0.4938 MB / 0.6206 GB, free: 101.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008928/1.168, allocations: 2.654 MB / 0.6232 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/1.169, allocations: 418.8 kB / 0.6236 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005374/1.175, allocations: 1.962 MB / 0.6255 GB, free: 99.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001587/1.175, allocations: 37.16 kB / 0.6256 GB, free: 99.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-05/1.175, allocations: 5.156 kB / 0.6256 GB, free: 99.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.847e-05/1.175, allocations: 15.47 kB / 0.6256 GB, free: 99.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02102/1.196, allocations: 7.762 MB / 0.6332 GB, free: 96.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.436e-05/1.196, allocations: 17 kB / 0.6332 GB, free: 96.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.197, allocations: 304.2 kB / 0.6335 GB, free: 96.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/1.198, allocations: 37.12 kB / 0.6335 GB, free: 96.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/1.198, allocations: 50.34 kB / 0.6336 GB, free: 96.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008497/1.199, allocations: 1.305 MB / 0.6348 GB, free: 94.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/1.199, allocations: 19.72 kB / 0.6349 GB, free: 94.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006091/1.205, allocations: 4.39 MB / 0.6391 GB, free: 92.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002156/1.207, allocations: 0.669 MB / 0.6398 GB, free: 91.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/1.209, allocations: 47.14 kB / 0.6398 GB, free: 91.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.211, allocations: 75.45 kB / 0.6399 GB, free: 91.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002934/1.211, allocations: 151 kB / 0.6401 GB, free: 91.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/1.211, allocations: 73.81 kB / 0.6401 GB, free: 91.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007264/1.219, allocations: 3.212 MB / 0.6433 GB, free: 88.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.219, allocations: 0.75 kB / 0.6433 GB, free: 88.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01092/1.23, allocations: 1.104 MB / 0.6443 GB, free: 87.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.phi) * 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 (163): * Single equations (assignments): 155 * Array equations: 7 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009181/1.231, allocations: 192.8 kB / 0.6445 GB, free: 87.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01256/1.243, allocations: 5.162 MB / 0.6496 GB, free: 82.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-05/1.243, allocations: 8.25 kB / 0.6496 GB, free: 82.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002375/1.246, allocations: 1.193 MB / 0.6507 GB, free: 81.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007187/1.253, allocations: 0.5418 MB / 0.6513 GB, free: 81.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02783/1.281, allocations: 13.5 MB / 0.6645 GB, free: 68.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004239/1.285, allocations: 3.784 MB / 0.6682 GB, free: 65.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/1.286, allocations: 386.2 kB / 0.6685 GB, free: 65.21 MB / 446.1 MB Notification: Performance of SimCode: time 1.143e-06/1.286, allocations: 0 / 0.6685 GB, free: 65.21 MB / 446.1 MB Notification: Performance of Templates: time 0.3703/1.657, allocations: 80.67 MB / 0.7473 GB, free: 122.3 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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.GearComponents.Examples.SpurGearCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGearCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGearCalcHelperMain.o] Error 1