Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002349/0.002349, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 92.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.135e-05, allocations: 4 kB / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3299, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.4931, allocations: 99.52 MB / 461.9 MB, free: 2.742 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/0.4935, allocations: 90.92 kB / 461.9 MB, free: 2.656 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6982/1.192, allocations: 95.53 MB / 0.5444 GB, free: 93.69 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.695e-06/1.192, allocations: 0 / 0.5444 GB, free: 93.69 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003611/1.192, allocations: 93.97 kB / 0.5445 GB, free: 93.68 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.02006/1.212, allocations: 4.678 MB / 0.5491 GB, free: 90.54 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/1.212, allocations: 11.38 kB / 0.5491 GB, free: 90.54 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0334/1.246, allocations: 4.497 MB / 0.5535 GB, free: 88.29 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0199/1.266, allocations: 5.06 MB / 0.5584 GB, free: 83.89 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003109/1.266, allocations: 152 kB / 0.5586 GB, free: 83.75 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002661/1.269, allocations: 279.9 kB / 0.5588 GB, free: 83.47 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01696/1.286, allocations: 6.985 MB / 0.5656 GB, free: 76.48 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02675/1.312, allocations: 10.59 MB / 0.576 GB, free: 64.85 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002432/1.313, allocations: 59.41 kB / 0.576 GB, free: 64.79 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001596/1.314, allocations: 31.98 kB / 0.5761 GB, free: 64.76 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00252/1.317, allocations: 1.203 MB / 0.5772 GB, free: 63.56 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07361/1.391, allocations: 50.62 MB / 0.6267 GB, free: 11.74 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006899/1.398, allocations: 4.055 MB / 0.6306 GB, free: 7.492 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004348/1.402, allocations: 2.396 MB / 0.633 GB, free: 5.082 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001279/1.403, allocations: 0.6936 MB / 0.6337 GB, free: 4.289 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/1.403, allocations: 59.81 kB / 0.6337 GB, free: 4.223 MB / 395.1 MB Notification: Performance of pre-optimization done (n=207): time 5.47e-06/1.403, allocations: 3.938 kB / 0.6337 GB, free: 4.219 MB / 395.1 MB Notification: Performance of matching and sorting (n=229): time 0.06175/1.465, allocations: 17.08 MB / 0.6504 GB, free: 3.047 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/1.465, allocations: 180.2 kB / 0.6506 GB, free: 2.836 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3057/1.771, allocations: 3.382 MB / 0.6539 GB, free: 100 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006271/1.772, allocations: 25.7 kB / 0.6539 GB, free: 99.99 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003311/1.775, allocations: 3.49 MB / 0.6573 GB, free: 98.66 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001494/1.777, allocations: 0.841 MB / 0.6581 GB, free: 98.17 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009339/1.778, allocations: 0 / 0.6581 GB, free: 98.17 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0006358/1.778, allocations: 0.609 MB / 0.6587 GB, free: 97.84 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006794/1.785, allocations: 2.393 MB / 0.6611 GB, free: 97.83 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01033/1.795, allocations: 6.428 MB / 0.6673 GB, free: 92.61 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.806, allocations: 3.901 MB / 0.6711 GB, free: 92.58 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003032/1.806, allocations: 41.16 kB / 0.6712 GB, free: 92.58 MB / 411.1 MB Notification: Performance of matching and sorting (n=904) (initialization): time 0.02748/1.834, allocations: 8.613 MB / 0.6796 GB, free: 91.79 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/1.834, allocations: 73.08 kB / 0.6797 GB, free: 91.79 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/1.834, allocations: 143.9 kB / 0.6798 GB, free: 91.79 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003769/1.838, allocations: 0.9287 MB / 0.6807 GB, free: 91.64 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01081/1.849, allocations: 1.668 MB / 0.6823 GB, free: 91.45 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/1.86, allocations: 5.489 MB / 0.6877 GB, free: 88.56 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007825/1.867, allocations: 258.5 kB / 0.6879 GB, free: 88.54 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001932/1.869, allocations: 421.3 kB / 0.6883 GB, free: 88.48 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 852 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002425/1.872, allocations: 471.7 kB / 0.6888 GB, free: 88.09 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.873, allocations: 375.8 kB / 0.6892 GB, free: 87.89 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01103/1.884, allocations: 3.955 MB / 0.693 GB, free: 86.46 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.731e-05/1.884, allocations: 25.12 kB / 0.693 GB, free: 86.46 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/1.884, allocations: 2.562 kB / 0.693 GB, free: 86.46 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.416e-05/1.884, allocations: 13.23 kB / 0.6931 GB, free: 86.46 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02607/1.91, allocations: 9.068 MB / 0.7019 GB, free: 83.11 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-05/1.91, allocations: 3.469 kB / 0.7019 GB, free: 83.11 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004205/1.915, allocations: 439 kB / 0.7023 GB, free: 83.08 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003157/1.918, allocations: 0.7116 MB / 0.703 GB, free: 82.94 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005303/1.918, allocations: 9.562 kB / 0.703 GB, free: 82.94 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00982/1.928, allocations: 4.997 MB / 0.7079 GB, free: 80.22 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/1.928, allocations: 8.344 kB / 0.7079 GB, free: 80.21 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/1.944, allocations: 7.316 MB / 0.7151 GB, free: 76.33 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002826/1.947, allocations: 0.7443 MB / 0.7158 GB, free: 75.62 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001299/1.948, allocations: 0 / 0.7158 GB, free: 75.62 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003767/1.952, allocations: 111.5 kB / 0.7159 GB, free: 75.57 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008589/1.953, allocations: 133.2 kB / 0.716 GB, free: 75.48 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/1.953, allocations: 57.22 kB / 0.7161 GB, free: 75.43 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005452/1.959, allocations: 2.262 MB / 0.7183 GB, free: 73.45 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.014e-06/1.959, allocations: 0 / 0.7183 GB, free: 73.45 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00851/1.967, allocations: 0.9975 MB / 0.7193 GB, free: 72.46 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 186 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008822/1.968, allocations: 146.9 kB / 0.7194 GB, free: 72.32 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01368/1.982, allocations: 5.91 MB / 0.7252 GB, free: 67 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.982, allocations: 4 kB / 0.7252 GB, free: 66.99 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005459/1.988, allocations: 2.153 MB / 0.7273 GB, free: 65.06 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/1.991, allocations: 354.7 kB / 0.7276 GB, free: 64.76 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02536/2.017, allocations: 9.514 MB / 0.7369 GB, free: 56.3 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01038/2.027, allocations: 3.772 MB / 0.7406 GB, free: 53.45 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003341/2.03, allocations: 317.3 kB / 0.7409 GB, free: 53.15 MB / 411.1 MB Notification: Performance of SimCode: time 2.385e-06/2.031, allocations: 0 / 0.7409 GB, free: 53.15 MB / 411.1 MB Notification: Performance of Templates: time 0.5036/2.534, allocations: 82.03 MB / 0.821 GB, free: 105.7 MB / 427.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches