Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, 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.0009217/0.0009218, 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.554/1.554, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2485/0.2485, allocations: 9.096 MB / 301.2 MB, free: 2.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003738, allocations: 12 kB / 364.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1355, allocations: 52.43 MB / 416.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.3301/0.4657, allocations: 43.21 MB / 460 MB, free: 16.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02551/0.4912, allocations: 9.245 MB / 469.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01422/0.5055, allocations: 165.1 kB / 469.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.508, allocations: 373.6 kB / 469.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005893/0.5139, allocations: 1.549 MB / 471.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006233/0.5146, allocations: 153.1 kB / 471.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005739/0.5203, allocations: 4.319 MB / 475.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002151/0.5225, allocations: 1.028 MB / 476.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002448/0.5249, allocations: 0.9395 MB / 477.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003176/0.5281, allocations: 1.614 MB / 479.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001155/0.5293, allocations: 162.9 kB / 479.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002764/0.5321, allocations: 0.7995 MB / 480.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002381/0.5345, allocations: 1.412 MB / 481.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.5369, allocations: 1.854 MB / 483.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007042/0.5439, allocations: 4.447 MB / 488 MB, free: 3.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.5439, allocations: 0 / 488 MB, free: 3.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.544, allocations: 5.75 kB / 488 MB, free: 3.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002654/0.5442, allocations: 0 / 488 MB, free: 3.461 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01336/0.5576, allocations: 3.784 MB / 491.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/0.5577, allocations: 9.281 kB / 491.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009327/0.567, allocations: 1.946 MB / 493.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004963/0.572, allocations: 1.584 MB / 495.4 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.5722, allocations: 195.5 kB / 495.5 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008768/0.5731, allocations: 257.7 kB / 495.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0225/0.5956, allocations: 9.792 MB / 0.4937 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/0.5958, allocations: 27.72 kB / 0.4938 GB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003896/0.5962, allocations: 127.8 kB / 0.4939 GB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00401/0.6002, allocations: 2.302 MB / 0.4961 GB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02145/0.6216, allocations: 8.474 MB / 0.5044 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0608/0.6825, allocations: 30.73 MB / 0.5344 GB, free: 32 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007828/0.6904, allocations: 2.795 MB / 0.5372 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002324/0.6928, allocations: 1.057 MB / 0.5382 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.7043, allocations: 5.839 MB / 0.5439 GB, free: 5.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.7044, allocations: 47.88 kB / 0.5439 GB, free: 5.672 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 5.58e-06/0.7044, allocations: 4 kB / 0.5439 GB, free: 5.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.02143/0.7259, allocations: 8.219 MB / 0.552 GB, free: 13.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/0.726, allocations: 72.72 kB / 0.552 GB, free: 13.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006941/0.7329, allocations: 3.19 MB / 0.5551 GB, free: 10.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002942/0.7333, allocations: 45.7 kB / 0.5552 GB, free: 10.03 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002043/0.7353, allocations: 2.601 MB / 0.5577 GB, free: 7.391 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009433/0.7363, allocations: 0.6747 MB / 0.5584 GB, free: 6.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005511/0.7368, allocations: 408.7 kB / 0.5588 GB, free: 6.301 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.737, allocations: 309.1 kB / 0.5591 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0028/0.7398, allocations: 1.571 MB / 0.5606 GB, free: 4.418 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005111/0.7449, allocations: 4.357 MB / 0.5649 GB, free: 14.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.7552, allocations: 6.388 MB / 0.5711 GB, free: 6.922 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001657/0.7554, allocations: 28 kB / 0.5711 GB, free: 6.895 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01612/0.7715, allocations: 6.021 MB / 0.577 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.7717, allocations: 50.34 kB / 0.5771 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001931/0.7719, allocations: 100 kB / 0.5772 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000952/0.7729, allocations: 355.9 kB / 0.5775 GB, free: 384 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3143/1.087, allocations: 1.091 MB / 0.5786 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004305/1.092, allocations: 3.391 MB / 0.5819 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004471/1.096, allocations: 251.2 kB / 0.5821 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009511/1.097, allocations: 300.9 kB / 0.5824 GB, free: 121.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004009/1.101, allocations: 1.879 MB / 0.5842 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006737/1.102, allocations: 277.1 kB / 0.5845 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004793/1.107, allocations: 2.424 MB / 0.5869 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002102/1.107, allocations: 48.45 kB / 0.5869 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.107, allocations: 4.906 kB / 0.5869 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/1.107, allocations: 6.516 kB / 0.5869 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.119, allocations: 6.897 MB / 0.5937 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/1.119, allocations: 7.281 kB / 0.5937 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009857/1.12, allocations: 264 kB / 0.5939 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005503/1.121, allocations: 215.2 kB / 0.5941 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.79e-05/1.121, allocations: 35.95 kB / 0.5942 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002646/1.123, allocations: 2.729 MB / 0.5968 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.123, allocations: 7.547 kB / 0.5968 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004974/1.128, allocations: 3.74 MB / 0.6005 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/1.129, allocations: 361.4 kB / 0.6008 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/1.13, allocations: 29.84 kB / 0.6009 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000961/1.131, allocations: 80.3 kB / 0.6009 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/1.131, allocations: 109.4 kB / 0.601 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/1.131, allocations: 56.2 kB / 0.6011 GB, free: 115.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003636/1.135, allocations: 2.028 MB / 0.6031 GB, free: 114.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.9e-07/1.135, allocations: 0 / 0.6031 GB, free: 114.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004634/1.139, allocations: 0.8468 MB / 0.6039 GB, free: 114.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003861/1.14, allocations: 165.3 kB / 0.6041 GB, free: 114.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006691/1.146, allocations: 3.838 MB / 0.6078 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.146, allocations: 1.312 kB / 0.6078 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/1.149, allocations: 1.2 MB / 0.609 GB, free: 112.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004151/1.153, allocations: 438.3 kB / 0.6094 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01892/1.172, allocations: 10.38 MB / 0.6195 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00422/1.176, allocations: 3.005 MB / 0.6225 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/1.177, allocations: 263.5 kB / 0.6227 GB, free: 105.3 MB / 446.1 MB Notification: Performance of SimCode: time 2.604e-06/1.177, allocations: 0 / 0.6227 GB, free: 105.3 MB / 446.1 MB Notification: Performance of Templates: time 0.0988/1.276, allocations: 67.66 MB / 0.6888 GB, free: 47.11 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemoCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemoCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemoCalcHelperMain.o] Error 1