Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 94.23 kB / 16.96 MB, free: 6.461 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.001276/0.001276, allocations: 179.3 kB / 17.84 MB, free: 6 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.562/1.562, allocations: 223.3 MB / 241.9 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002673/0.0002673, allocations: 8 kB / 301.5 MB, free: 6.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1397, allocations: 50.42 MB / 351.9 MB, free: 4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.4103/0.55, allocations: 66.37 MB / 418.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04971/0.5998, allocations: 14.01 MB / 432.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02314/0.623, allocations: 319.2 kB / 432.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01531/0.6383, allocations: 3.421 MB / 436 MB, free: 420 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03629/0.6747, allocations: 10.19 MB / 446.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006569/0.6813, allocations: 1.291 MB / 447.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.08838/0.7697, allocations: 64.48 MB / 0.5 GB, free: 4.316 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01167/0.7814, allocations: 6.386 MB / 0.5062 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006268/0.7877, allocations: 2.25 MB / 0.5084 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007248/0.795, allocations: 3.673 MB / 0.512 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001747/0.7968, allocations: 248 kB / 0.5122 GB, free: 7.691 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003765/0.8005, allocations: 1.205 MB / 0.5134 GB, free: 6.484 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004263/0.8048, allocations: 2.984 MB / 0.5163 GB, free: 3.492 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00268/0.8075, allocations: 1.302 MB / 0.5176 GB, free: 2.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.8207, allocations: 8.53 MB / 0.5259 GB, free: 9.629 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.8208, allocations: 0 / 0.5259 GB, free: 9.629 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.077e-06/0.8208, allocations: 0 / 0.5259 GB, free: 9.629 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004925/0.8213, allocations: 4 kB / 0.5259 GB, free: 9.625 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01923/0.8406, allocations: 6.896 MB / 0.5326 GB, free: 2.645 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.8406, allocations: 8.031 kB / 0.5326 GB, free: 2.637 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3044/1.145, allocations: 3.757 MB / 0.5363 GB, free: 155.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/1.16, allocations: 5.193 MB / 0.5414 GB, free: 154.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004382/1.16, allocations: 367.2 kB / 0.5417 GB, free: 154.1 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002622/1.163, allocations: 0.5134 MB / 0.5422 GB, free: 154 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03539/1.198, allocations: 16.27 MB / 0.5581 GB, free: 146.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002098/1.198, allocations: 74.08 kB / 0.5582 GB, free: 146.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006841/1.199, allocations: 239 kB / 0.5584 GB, free: 146 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004165/1.203, allocations: 2.926 MB / 0.5613 GB, free: 143.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02787/1.231, allocations: 13.7 MB / 0.5747 GB, free: 130.1 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0858/1.317, allocations: 64.78 MB / 0.6379 GB, free: 63.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0208/1.338, allocations: 7.958 MB / 0.6457 GB, free: 55.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006528/1.345, allocations: 4.345 MB / 0.65 GB, free: 51.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03262/1.377, allocations: 19.35 MB / 0.6688 GB, free: 31.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.889e-05/1.377, allocations: 68.56 kB / 0.6689 GB, free: 31.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 7.805e-06/1.377, allocations: 0 / 0.6689 GB, free: 31.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.4505/1.828, allocations: 50.48 MB / 0.7182 GB, free: 135.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/1.828, allocations: 272.1 kB / 0.7185 GB, free: 135.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009677/1.838, allocations: 6.019 MB / 0.7243 GB, free: 133 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001102/1.839, allocations: 80.27 kB / 0.7244 GB, free: 132.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003366/1.842, allocations: 4.665 MB / 0.729 GB, free: 129.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001977/1.844, allocations: 1.378 MB / 0.7303 GB, free: 128.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005175/1.845, allocations: 190.8 kB / 0.7305 GB, free: 128.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000457/1.845, allocations: 0.707 MB / 0.7312 GB, free: 127.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005936/1.851, allocations: 4.19 MB / 0.7353 GB, free: 126.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/1.862, allocations: 9.416 MB / 0.7445 GB, free: 117.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009773/1.871, allocations: 6.079 MB / 0.7504 GB, free: 114.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001557/1.872, allocations: 52 kB / 0.7505 GB, free: 114.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03645/1.908, allocations: 17.5 MB / 0.7676 GB, free: 96.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003207/1.908, allocations: 84 kB / 0.7676 GB, free: 96.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003828/1.909, allocations: 184 kB / 0.7678 GB, free: 96.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01369/1.923, allocations: 4.606 MB / 0.7723 GB, free: 92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007516/1.93, allocations: 2.126 MB / 0.7744 GB, free: 89.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03253/1.963, allocations: 23.72 MB / 0.7976 GB, free: 65.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00927/1.972, allocations: 0.5306 MB / 0.7981 GB, free: 65.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002381/1.974, allocations: 0.5351 MB / 0.7986 GB, free: 64.83 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1136): * Single equations (assignments): 1131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(2,100.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007948/1.982, allocations: 3.126 MB / 0.8017 GB, free: 61.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002101/1.984, allocations: 0.5631 MB / 0.8022 GB, free: 61.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02151/2.006, allocations: 10.73 MB / 0.8127 GB, free: 50.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.388e-05/2.006, allocations: 40 kB / 0.8127 GB, free: 50.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-05/2.006, allocations: 16.47 kB / 0.8127 GB, free: 50.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.386e-05/2.006, allocations: 23.92 kB / 0.8128 GB, free: 50.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04185/2.048, allocations: 20.53 MB / 0.8328 GB, free: 29.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.658e-05/2.048, allocations: 0 / 0.8328 GB, free: 29.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003438/2.052, allocations: 0.5344 MB / 0.8333 GB, free: 29.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01269/2.065, allocations: 4.218 MB / 0.8374 GB, free: 24.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/2.066, allocations: 63.98 kB / 0.8375 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02937/2.095, allocations: 21.54 MB / 0.8585 GB, free: 2.996 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/2.095, allocations: 4 kB / 0.8585 GB, free: 2.992 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3262/2.421, allocations: 15.62 MB / 0.8738 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002308/2.424, allocations: 0.5968 MB / 0.8744 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/2.425, allocations: 60.25 kB / 0.8744 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003003/2.428, allocations: 226.5 kB / 0.8747 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008125/2.429, allocations: 224.6 kB / 0.8749 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002791/2.429, allocations: 93.62 kB / 0.875 GB, free: 123.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007466/2.437, allocations: 3.742 MB / 0.8786 GB, free: 122.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/2.437, allocations: 3.094 kB / 0.8786 GB, free: 122.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01224/2.449, allocations: 1.935 MB / 0.8805 GB, free: 121.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (272): * Single equations (assignments): 267 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/2.45, allocations: 212.7 kB / 0.8807 GB, free: 121.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02007/2.47, allocations: 10.46 MB / 0.8909 GB, free: 117.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.887e-05/2.47, allocations: 2.141 kB / 0.8909 GB, free: 117.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00817/2.478, allocations: 4.115 MB / 0.8949 GB, free: 116.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009649/2.488, allocations: 0.7418 MB / 0.8957 GB, free: 115.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04391/2.532, allocations: 19.55 MB / 0.9148 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01044/2.543, allocations: 4.828 MB / 0.9195 GB, free: 97.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002539/2.545, allocations: 449.7 kB / 0.9199 GB, free: 97.24 MB / 446.1 MB Notification: Performance of SimCode: time 2.034e-06/2.545, allocations: 0 / 0.9199 GB, free: 97.24 MB / 446.1 MB Notification: Performance of Templates: time 0.5082/3.053, allocations: 152.5 MB / 1.069 GB, free: 123.6 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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 OMCppModelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMassesCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMassesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMassesCalcHelperMain.o] Error 1