Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008709/0.008709, allocations: 100.5 kB / 15.87 MB, free: 5.863 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.00151/0.00151, allocations: 188 kB / 16.79 MB, free: 5.805 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2191/0.2191, allocations: 9.098 MB / 299.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 59.91 kB / 361.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1437, allocations: 51.44 MB / 413.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.3344/0.4781, allocations: 44.16 MB / 457.5 MB, free: 17.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02431/0.5025, allocations: 9.256 MB / 466.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01263/0.5151, allocations: 166.7 kB / 466.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.5168, allocations: 372.9 kB / 467.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005193/0.5221, allocations: 1.476 MB / 468.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006112/0.5227, allocations: 180.2 kB / 468.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004213/0.5269, allocations: 4.068 MB / 473 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.5282, allocations: 1.072 MB / 474.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.5293, allocations: 0.949 MB / 475 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001679/0.531, allocations: 1.564 MB / 476.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004014/0.5314, allocations: 173.6 kB / 476.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001704/0.5331, allocations: 0.8086 MB / 477.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.5344, allocations: 1.314 MB / 478.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001552/0.536, allocations: 1.767 MB / 480.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005836/0.5418, allocations: 4.289 MB / 484.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.5419, allocations: 0.5156 kB / 484.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5419, allocations: 1.344 kB / 484.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001871/0.5421, allocations: 4 kB / 484.9 MB, free: 3.613 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.01898/0.5611, allocations: 5.73 MB / 490.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.279e-05/0.5611, allocations: 8.531 kB / 490.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008396/0.5695, allocations: 1.824 MB / 492.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003987/0.5736, allocations: 1.568 MB / 494.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.5738, allocations: 186.3 kB / 494.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005769/0.5744, allocations: 244.5 kB / 494.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02181/0.5962, allocations: 9.307 MB / 0.492 GB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002353/0.5965, allocations: 31.72 kB / 0.492 GB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001212/0.5977, allocations: 115.9 kB / 0.4921 GB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003871/0.6016, allocations: 2.072 MB / 0.4942 GB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02097/0.6226, allocations: 8.245 MB / 0.5022 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06303/0.6857, allocations: 30.02 MB / 0.5315 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009359/0.6951, allocations: 3.043 MB / 0.5345 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00244/0.6975, allocations: 1.112 MB / 0.5356 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.7091, allocations: 6.283 MB / 0.5417 GB, free: 5.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.055e-05/0.7092, allocations: 51.88 kB / 0.5418 GB, free: 5.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 5.651e-06/0.7092, allocations: 0 / 0.5418 GB, free: 5.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02571/0.7349, allocations: 8.279 MB / 0.5498 GB, free: 13.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.381e-05/0.735, allocations: 77.34 kB / 0.5499 GB, free: 13.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007145/0.7422, allocations: 3.073 MB / 0.5529 GB, free: 9.961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003862/0.7426, allocations: 61.7 kB / 0.553 GB, free: 9.895 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002322/0.7449, allocations: 2.413 MB / 0.5553 GB, free: 7.449 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/0.7462, allocations: 0.8479 MB / 0.5562 GB, free: 6.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002873/0.7491, allocations: 0.9885 MB / 0.5571 GB, free: 5.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.7493, allocations: 301.1 kB / 0.5574 GB, free: 5.293 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004282/0.7536, allocations: 1.63 MB / 0.559 GB, free: 3.656 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006195/0.7598, allocations: 4.256 MB / 0.5632 GB, free: 14.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009248/0.7691, allocations: 6.394 MB / 0.5694 GB, free: 6.453 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/0.7692, allocations: 24 kB / 0.5694 GB, free: 6.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.274/1.043, allocations: 6.478 MB / 0.5758 GB, free: 122.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/1.043, allocations: 43.53 kB / 0.5758 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001846/1.044, allocations: 91.98 kB / 0.5759 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002276/1.046, allocations: 0.7032 MB / 0.5766 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/1.05, allocations: 1.051 MB / 0.5776 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/1.061, allocations: 11.11 MB / 0.5885 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/1.066, allocations: 258.9 kB / 0.5887 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/1.067, allocations: 292.3 kB / 0.589 GB, free: 116.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 (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.004034/1.071, allocations: 1.788 MB / 0.5907 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006886/1.071, allocations: 288.6 kB / 0.591 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005496/1.077, allocations: 3.126 MB / 0.5941 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/1.077, allocations: 36.38 kB / 0.5941 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.11e-05/1.077, allocations: 6.688 kB / 0.5941 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/1.077, allocations: 10.08 kB / 0.5941 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/1.093, allocations: 8.31 MB / 0.6022 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/1.093, allocations: 6.375 kB / 0.6022 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/1.094, allocations: 302.5 kB / 0.6025 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/1.095, allocations: 0.5419 MB / 0.603 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/1.096, allocations: 45.16 kB / 0.6031 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008279/1.104, allocations: 9.172 MB / 0.612 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.104, allocations: 9.703 kB / 0.6121 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008802/1.113, allocations: 4.692 MB / 0.6166 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/1.114, allocations: 351 kB / 0.617 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001067/1.115, allocations: 42.22 kB / 0.617 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/1.117, allocations: 96.03 kB / 0.6171 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/1.118, allocations: 153.5 kB / 0.6172 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001782/1.118, allocations: 69.28 kB / 0.6173 GB, free: 102.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004698/1.122, allocations: 1.961 MB / 0.6192 GB, free: 102 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.122, allocations: 0 / 0.6192 GB, free: 102 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006185/1.129, allocations: 0.9065 MB / 0.6201 GB, free: 101.9 MB / 446.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,revolute4.phi,revolute4.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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006644/1.129, allocations: 181.7 kB / 0.6203 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01085/1.14, allocations: 4.683 MB / 0.6249 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.912e-05/1.14, allocations: 1.469 kB / 0.6249 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00406/1.144, allocations: 1.963 MB / 0.6268 GB, free: 98.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004282/1.149, allocations: 439.5 kB / 0.6272 GB, free: 98.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/1.17, allocations: 10.2 MB / 0.6372 GB, free: 93.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005898/1.176, allocations: 2.926 MB / 0.64 GB, free: 91.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/1.177, allocations: 255.1 kB / 0.6403 GB, free: 91.78 MB / 446.1 MB Notification: Performance of SimCode: time 1.943e-06/1.177, allocations: 0 / 0.6403 GB, free: 91.78 MB / 446.1 MB Notification: Performance of Templates: time 0.4028/1.58, allocations: 139.6 MB / 0.7766 GB, free: 128.6 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.KinematicLoopCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.KinematicLoopCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.KinematicLoopCalcHelperMain.o] Error 1