Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009219/0.0009221, allocations: 88.47 kB / 17.63 MB, free: 6.293 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.001177/0.001177, allocations: 180.7 kB / 18.52 MB, free: 5.445 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.521/1.521, allocations: 223.2 MB / 242.5 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2497/0.2497, allocations: 44.24 MB / 337.9 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003552, allocations: 11.94 kB / 410.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1511, allocations: 61.93 MB / 472.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.4644/0.6156, allocations: 80.96 MB / 0.5402 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04864/0.6643, allocations: 16.35 MB / 0.5562 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02616/0.6905, allocations: 385.6 kB / 0.5565 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01772/0.7083, allocations: 4.271 MB / 0.5607 GB, free: 8.547 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04799/0.7564, allocations: 12.4 MB / 0.5728 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006824/0.7632, allocations: 0.8705 MB / 0.5737 GB, free: 12.69 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.09379/0.857, allocations: 63.01 MB / 0.6352 GB, free: 13.59 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01487/0.872, allocations: 7.307 MB / 0.6423 GB, free: 6.207 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005282/0.8773, allocations: 1.911 MB / 0.6442 GB, free: 4.289 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005965/0.8833, allocations: 2.971 MB / 0.6471 GB, free: 1.309 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001498/0.8848, allocations: 208 kB / 0.6473 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003395/0.8882, allocations: 1.003 MB / 0.6483 GB, free: 104 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003951/0.8922, allocations: 2.661 MB / 0.6509 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002772/0.895, allocations: 1.252 MB / 0.6521 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.909, allocations: 8.179 MB / 0.6601 GB, free: 3.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.749e-06/0.909, allocations: 0 / 0.6601 GB, free: 3.973 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.909, allocations: 0 / 0.6601 GB, free: 3.973 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005447/0.9096, allocations: 4 kB / 0.6601 GB, free: 3.969 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01821/0.9278, allocations: 6.244 MB / 0.6662 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.9279, allocations: 12.03 kB / 0.6662 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01234/0.9402, allocations: 2.838 MB / 0.669 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/0.9512, allocations: 4.199 MB / 0.6731 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003646/0.9516, allocations: 361.3 kB / 0.6734 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002031/0.9537, allocations: 491.6 kB / 0.6739 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03319/0.9869, allocations: 14.61 MB / 0.6881 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006142/0.9875, allocations: 67.36 kB / 0.6882 GB, free: 5.973 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002846/0.9904, allocations: 231.8 kB / 0.6884 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005953/0.9964, allocations: 2.82 MB / 0.6912 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02955/1.026, allocations: 12.32 MB / 0.7032 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4075/1.433, allocations: 58.44 MB / 0.7603 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01323/1.447, allocations: 6.271 MB / 0.7664 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00465/1.451, allocations: 3.694 MB / 0.77 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01534/1.467, allocations: 8.538 MB / 0.7784 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.347e-05/1.467, allocations: 71.66 kB / 0.7784 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.05e-06/1.467, allocations: 0 / 0.7784 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07999/1.547, allocations: 30.38 MB / 0.8081 GB, free: 107.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.547, allocations: 241.6 kB / 0.8083 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01278/1.56, allocations: 6.719 MB / 0.8149 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009565/1.561, allocations: 66.56 kB / 0.815 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003514/1.565, allocations: 4.5 MB / 0.8193 GB, free: 96.15 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001865/1.566, allocations: 1.066 MB / 0.8204 GB, free: 95.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001241/1.568, allocations: 176 kB / 0.8206 GB, free: 94.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000826/1.569, allocations: 0.6779 MB / 0.8212 GB, free: 94.24 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006449/1.575, allocations: 3.554 MB / 0.8247 GB, free: 90.68 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009918/1.585, allocations: 8.645 MB / 0.8331 GB, free: 79.53 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009292/1.594, allocations: 5.397 MB / 0.8384 GB, free: 74.12 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003048/1.595, allocations: 52 kB / 0.8385 GB, free: 74.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.03022/1.625, allocations: 13.98 MB / 0.8521 GB, free: 60.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003308/1.625, allocations: 84.06 kB / 0.8522 GB, free: 59.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004112/1.626, allocations: 176 kB / 0.8524 GB, free: 59.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00566/1.631, allocations: 2.319 MB / 0.8546 GB, free: 57.49 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006953/1.638, allocations: 2.004 MB / 0.8566 GB, free: 55.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0168/1.655, allocations: 13.41 MB / 0.8697 GB, free: 41.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008627/1.664, allocations: 0.5045 MB / 0.8702 GB, free: 41.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002195/1.666, allocations: 0.5126 MB / 0.8707 GB, free: 40.79 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1064): * Single equations (assignments): 1057 * Array equations: 5 * 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%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00785/1.674, allocations: 3.057 MB / 0.8737 GB, free: 37.72 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001883/1.676, allocations: 0.5553 MB / 0.8742 GB, free: 37.16 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/1.689, allocations: 7.072 MB / 0.8811 GB, free: 30.06 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.705e-05/1.689, allocations: 32 kB / 0.8811 GB, free: 30.03 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.243e-05/1.689, allocations: 8 kB / 0.8811 GB, free: 30.02 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.268e-05/1.69, allocations: 19.95 kB / 0.8812 GB, free: 30 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03166/1.721, allocations: 14.99 MB / 0.8958 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-05/1.721, allocations: 8 kB / 0.8958 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002324/1.724, allocations: 447.3 kB / 0.8962 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005041/1.729, allocations: 2.042 MB / 0.8982 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006579/1.729, allocations: 51.98 kB / 0.8983 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3843/2.114, allocations: 12.67 MB / 0.9107 GB, free: 174.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.946e-05/2.114, allocations: 11.88 kB / 0.9107 GB, free: 174.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0277/2.142, allocations: 11.19 MB / 0.9216 GB, free: 172.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002612/2.144, allocations: 0.6438 MB / 0.9222 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001592/2.146, allocations: 48.44 kB / 0.9223 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/2.148, allocations: 210.9 kB / 0.9225 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000554/2.149, allocations: 171.8 kB / 0.9226 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002354/2.149, allocations: 71.16 kB / 0.9227 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.009916/2.159, allocations: 4.282 MB / 0.9269 GB, free: 171 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.102e-06/2.159, allocations: 0 / 0.9269 GB, free: 171 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01059/2.17, allocations: 1.619 MB / 0.9285 GB, free: 170.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (220): * Single equations (assignments): 215 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007352/2.171, allocations: 197.6 kB / 0.9287 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01359/2.184, allocations: 8.648 MB / 0.9371 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/2.184, allocations: 1.094 kB / 0.9371 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005816/2.19, allocations: 3.409 MB / 0.9404 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005101/2.195, allocations: 0.7177 MB / 0.9411 GB, free: 166 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02771/2.223, allocations: 17.99 MB / 0.9587 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004293/2.227, allocations: 4.603 MB / 0.9632 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/2.229, allocations: 447.3 kB / 0.9636 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.243e-06/2.229, allocations: 0 / 0.9636 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1865/2.416, allocations: 144.2 MB / 1.104 GB, free: 2.504 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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 OMCppModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.TorqueCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.TorqueCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.TorqueCalcHelperMain.o] Error 1