Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_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.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007898/0.0007898, allocations: 100.9 kB / 15.71 MB, free: 452 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.0009235/0.0009234, allocations: 175.3 kB / 16.58 MB, free: 6.422 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.503/1.503, allocations: 223.3 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.277/0.277, allocations: 9.094 MB / 300.8 MB, free: 2.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003416, allocations: 8 kB / 363.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 52.44 MB / 416.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2636/0.3943, allocations: 40.02 MB / 456.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02055/0.4149, allocations: 8.887 MB / 465.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00805/0.423, allocations: 164 kB / 465.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006154/0.4292, allocations: 1.977 MB / 467.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0194/0.4486, allocations: 6.853 MB / 474.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002549/0.4512, allocations: 198.3 kB / 474.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00439/0.4557, allocations: 3.302 MB / 477.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001874/0.4576, allocations: 1.039 MB / 478.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.4592, allocations: 0.9645 MB / 479.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.4617, allocations: 1.515 MB / 481.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006134/0.4624, allocations: 157.4 kB / 481.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00205/0.4644, allocations: 0.6926 MB / 481.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001759/0.4662, allocations: 1.261 MB / 483.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.4674, allocations: 0.7463 MB / 483.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007623/0.475, allocations: 4.17 MB / 488.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.475, allocations: 0.5625 kB / 488.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4751, allocations: 4.812 kB / 488.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000238/0.4753, allocations: 0 / 488.1 MB, free: 4.746 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01489/0.4902, allocations: 5.015 MB / 493.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.4903, allocations: 10.09 kB / 493.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007701/0.498, allocations: 1.87 MB / 495 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004551/0.5026, allocations: 1.534 MB / 496.5 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/0.5029, allocations: 185.4 kB / 496.7 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.504, allocations: 246.6 kB / 497 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/0.5248, allocations: 9.296 MB / 0.4944 GB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001902/0.5251, allocations: 23.81 kB / 0.4944 GB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001291/0.5264, allocations: 118.1 kB / 0.4945 GB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003865/0.5303, allocations: 2.076 MB / 0.4965 GB, free: 7.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0205/0.5508, allocations: 8.198 MB / 0.5046 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0584/0.6092, allocations: 30.03 MB / 0.5339 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00906/0.6184, allocations: 3.029 MB / 0.5368 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002472/0.6209, allocations: 1.104 MB / 0.5379 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.6319, allocations: 6.285 MB / 0.5441 GB, free: 5.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.315e-05/0.632, allocations: 51.88 kB / 0.5441 GB, free: 5.023 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 5.06e-06/0.632, allocations: 0 / 0.5441 GB, free: 5.023 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.03373/0.6657, allocations: 12.35 MB / 0.5562 GB, free: 8.516 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009006/0.6747, allocations: 6.619 MB / 0.5626 GB, free: 1.586 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006825/0.6816, allocations: 3.045 MB / 0.5656 GB, free: 14.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004381/0.6821, allocations: 65.69 kB / 0.5657 GB, free: 14.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002301/0.6844, allocations: 2.428 MB / 0.568 GB, free: 11.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/0.6858, allocations: 0.8633 MB / 0.5689 GB, free: 11.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006496/0.6865, allocations: 100 kB / 0.569 GB, free: 11.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0006294/0.6871, allocations: 0.517 MB / 0.5695 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004132/0.6913, allocations: 1.689 MB / 0.5711 GB, free: 8.797 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006713/0.698, allocations: 4.312 MB / 0.5753 GB, free: 3.199 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005745/0.7038, allocations: 2.71 MB / 0.578 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/0.7039, allocations: 24 kB / 0.578 GB, free: 480 kB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.3495/1.053, allocations: 6.616 MB / 0.5845 GB, free: 120.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.085e-05/1.054, allocations: 44.59 kB / 0.5845 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/1.054, allocations: 91.06 kB / 0.5846 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/1.056, allocations: 0.7161 MB / 0.5853 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003676/1.059, allocations: 1.073 MB / 0.5863 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/1.071, allocations: 11.1 MB / 0.5972 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00451/1.075, allocations: 301.8 kB / 0.5975 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009204/1.076, allocations: 294.9 kB / 0.5978 GB, free: 113.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(2,100.0%) 17,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.003926/1.08, allocations: 1.793 MB / 0.5995 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005558/1.081, allocations: 280.8 kB / 0.5998 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005722/1.086, allocations: 3.489 MB / 0.6032 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005142/1.091, allocations: 3.018 MB / 0.6061 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.092, allocations: 12.94 kB / 0.6061 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.537e-05/1.092, allocations: 11.77 kB / 0.6061 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02092/1.112, allocations: 10.7 MB / 0.6166 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/1.113, allocations: 2.656 kB / 0.6166 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/1.114, allocations: 278.3 kB / 0.6169 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/1.116, allocations: 0.7842 MB / 0.6176 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001794/1.116, allocations: 49.72 kB / 0.6177 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/1.129, allocations: 11.02 MB / 0.6284 GB, free: 98.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007989/1.137, allocations: 5.77 MB / 0.6341 GB, free: 94.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008396/1.146, allocations: 5.079 MB / 0.639 GB, free: 92.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.147, allocations: 374.4 kB / 0.6394 GB, free: 92.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003118/1.148, allocations: 42.2 kB / 0.6394 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/1.149, allocations: 108.9 kB / 0.6395 GB, free: 92.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004903/1.149, allocations: 169.2 kB / 0.6397 GB, free: 92.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/1.149, allocations: 66.78 kB / 0.6398 GB, free: 92.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003818/1.153, allocations: 1.945 MB / 0.6417 GB, free: 91.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.1e-07/1.153, allocations: 0 / 0.6417 GB, free: 91.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006028/1.159, allocations: 1.003 MB / 0.6426 GB, free: 91.65 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.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 (158): * Single equations (assignments): 149 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 6,(2,100.0%) 15,(4,87.5%) 12} * Non-linear torn systems: 1 {3 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005757/1.16, allocations: 177.2 kB / 0.6428 GB, free: 91.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007901/1.168, allocations: 4.826 MB / 0.6475 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/1.168, allocations: 0 / 0.6475 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003088/1.171, allocations: 2.225 MB / 0.6497 GB, free: 85.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002813/1.174, allocations: 444.7 kB / 0.6501 GB, free: 84.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01878/1.193, allocations: 10.19 MB / 0.6601 GB, free: 75.33 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003094/1.196, allocations: 2.965 MB / 0.663 GB, free: 72.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/1.197, allocations: 259.4 kB / 0.6632 GB, free: 72.59 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/1.197, allocations: 0 / 0.6632 GB, free: 72.59 MB / 446.1 MB Notification: Performance of Templates: time 0.4057/1.603, allocations: 140.8 MB / 0.8008 GB, free: 111.5 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.KinematicLoop_DynamicStateSelectionCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelectionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelectionCalcHelperMain.o] Error 1