Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 102.6 kB / 15.71 MB, free: 460 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.001333/0.001333, allocations: 172.4 kB / 16.58 MB, free: 6.395 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.53/1.53, allocations: 223.3 MB / 240.6 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2423/0.2423, allocations: 9.088 MB / 300.8 MB, free: 2.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004465/0.0004466, allocations: 12.22 kB / 363.7 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1346, allocations: 52.43 MB / 416.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.301/0.4356, allocations: 32.67 MB / 448.8 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02012/0.4558, allocations: 7.867 MB / 456.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008898/0.4648, allocations: 132.2 kB / 456.8 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005771/0.4706, allocations: 1.374 MB / 458.2 MB, free: 19.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0154/0.486, allocations: 4.544 MB / 462.7 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002897/0.489, allocations: 0.6984 MB / 463.4 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002976/0.492, allocations: 2.224 MB / 465.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002203/0.4942, allocations: 2.014 MB / 467.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009654/0.4952, allocations: 0.7816 MB / 468.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00102/0.4962, allocations: 1.006 MB / 469.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.4964, allocations: 131.9 kB / 469.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000868/0.4973, allocations: 490.1 kB / 470.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005918/0.4979, allocations: 0.7449 MB / 470.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004863/0.4984, allocations: 0.5242 MB / 471.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00236/0.5007, allocations: 2.888 MB / 474.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.5007, allocations: 3.281 kB / 474.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5008, allocations: 4 kB / 474.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.981e-05/0.5008, allocations: 3.031 kB / 474.2 MB, free: 12.77 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.009647/0.5105, allocations: 3.63 MB / 477.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.5105, allocations: 9.5 kB / 477.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007767/0.5113, allocations: 296.1 kB / 478.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.5131, allocations: 1.109 MB / 479.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.5133, allocations: 218.7 kB / 479.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004055/0.5137, allocations: 289.1 kB / 479.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00868/0.5224, allocations: 4.713 MB / 484.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.5225, allocations: 36.69 kB / 484.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002386/0.5228, allocations: 129.5 kB / 484.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006371/0.5234, allocations: 434.9 kB / 485.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007788/0.5312, allocations: 3.35 MB / 488.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02451/0.5558, allocations: 21.62 MB / 0.4981 GB, free: 4.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00504/0.5608, allocations: 1.914 MB / 0.5 GB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.562, allocations: 0.689 MB / 0.5006 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007574/0.5696, allocations: 5.554 MB / 0.5061 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.5697, allocations: 43.56 kB / 0.5061 GB, free: 12.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.657e-06/0.5697, allocations: 0 / 0.5061 GB, free: 12.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02241/0.5921, allocations: 9.565 MB / 0.5154 GB, free: 2.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.5922, allocations: 72.7 kB / 0.5155 GB, free: 2.508 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002638/0.5949, allocations: 1.798 MB / 0.5173 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.595, allocations: 45.7 kB / 0.5173 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.5963, allocations: 1.74 MB / 0.519 GB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005782/0.5969, allocations: 0.5282 MB / 0.5195 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.5971, allocations: 76 kB / 0.5196 GB, free: 14.28 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003126/0.5974, allocations: 0.5026 MB / 0.5201 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002062/0.5994, allocations: 1.206 MB / 0.5213 GB, free: 12.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003623/0.6031, allocations: 3.402 MB / 0.5246 GB, free: 8.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.6061, allocations: 1.887 MB / 0.5264 GB, free: 6.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.508e-05/0.6061, allocations: 24 kB / 0.5265 GB, free: 6.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008046/0.6142, allocations: 4.781 MB / 0.5311 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.919e-05/0.6143, allocations: 43.98 kB / 0.5312 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.791e-05/0.6144, allocations: 76.84 kB / 0.5312 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009775/0.6154, allocations: 380.5 kB / 0.5316 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/0.618, allocations: 0.8929 MB / 0.5325 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00522/0.6233, allocations: 3.943 MB / 0.5363 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/0.626, allocations: 211.7 kB / 0.5365 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003983/0.6264, allocations: 235.9 kB / 0.5368 GB, free: 11.48 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * 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: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001753/0.6282, allocations: 0.9314 MB / 0.5377 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003274/0.6285, allocations: 189.5 kB / 0.5378 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004229/0.6328, allocations: 2.587 MB / 0.5404 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/0.6328, allocations: 12 kB / 0.5404 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.6328, allocations: 4 kB / 0.5404 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.6328, allocations: 7.969 kB / 0.5404 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.644, allocations: 6.501 MB / 0.5467 GB, free: 1.086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6441, allocations: 4 kB / 0.5467 GB, free: 1.082 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.6451, allocations: 279.6 kB / 0.547 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006519/0.6458, allocations: 263.3 kB / 0.5473 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.8e-05/0.6459, allocations: 24 kB / 0.5473 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003973/0.6499, allocations: 3.192 MB / 0.5504 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/0.6499, allocations: 4 kB / 0.5504 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005514/0.6554, allocations: 3.892 MB / 0.5542 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000708/0.6562, allocations: 246.7 kB / 0.5544 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.6564, allocations: 27.98 kB / 0.5545 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007622/0.6572, allocations: 111.8 kB / 0.5546 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.6574, allocations: 92.81 kB / 0.5547 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.113e-05/0.6575, allocations: 36 kB / 0.5547 GB, free: 8.719 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001743/0.6592, allocations: 1.073 MB / 0.5557 GB, free: 7.656 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6593, allocations: 4 kB / 0.5558 GB, free: 7.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003028/0.6623, allocations: 0.6367 MB / 0.5564 GB, free: 7.016 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (121): * Single equations (assignments): 120 * 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: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002692/0.6626, allocations: 139.5 kB / 0.5565 GB, free: 6.867 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005509/0.6681, allocations: 3.293 MB / 0.5597 GB, free: 3.574 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6681, allocations: 0 / 0.5597 GB, free: 3.574 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/0.67, allocations: 1.264 MB / 0.561 GB, free: 2.301 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.672, allocations: 404.4 kB / 0.5613 GB, free: 1.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.6825, allocations: 6.192 MB / 0.5674 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/0.6844, allocations: 1.837 MB / 0.5692 GB, free: 9.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008155/0.6852, allocations: 175.4 kB / 0.5693 GB, free: 9.582 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.6852, allocations: 0 / 0.5693 GB, free: 9.582 MB / 446.1 MB Notification: Performance of Templates: time 0.3173/1.003, allocations: 43.78 MB / 0.6121 GB, free: 117.4 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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 OMCppPlanarMechanics_PlanarMechanics.Examples.MeasureDemoCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.MeasureDemoCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.MeasureDemoCalcHelperMain.o] Error 1