Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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 3.2.3+maint.om/package.mo", uses=false) 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 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.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001527/0.001527, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 205.1 MB / 224 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001087, allocations: 52.16 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07709/0.07818, allocations: 46.62 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2212/0.2994, allocations: 57.95 MB / 384.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02372/0.3232, allocations: 11.67 MB / 396.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01128/0.3345, allocations: 244.2 kB / 396.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005427/0.34, allocations: 3.113 MB / 399.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005157/0.3452, allocations: 1.941 MB / 401.7 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001713/0.3469, allocations: 0.7792 MB / 402.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005025/0.352, allocations: 4.704 MB / 407.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00366/0.3556, allocations: 4.39 MB / 411.6 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002362/0.358, allocations: 1.793 MB / 413.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002531/0.3606, allocations: 2.607 MB / 416 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006495/0.3612, allocations: 387.4 kB / 416.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.3633, allocations: 1.282 MB / 417.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001814/0.3651, allocations: 2.262 MB / 419.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0022/0.3673, allocations: 2.577 MB / 422.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007652/0.375, allocations: 8.04 MB / 430.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3751, allocations: 0 / 430.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3751, allocations: 0 / 430.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002581/0.3753, allocations: 0 / 430.5 MB, free: 2.461 MB / 334.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.01251/0.3878, allocations: 5.512 MB / 436 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3879, allocations: 8.031 kB / 436 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009497/0.3974, allocations: 2.232 MB / 438.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007161/0.4046, allocations: 2.951 MB / 441.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/0.4049, allocations: 265 kB / 441.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/0.4063, allocations: 354.2 kB / 441.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02247/0.4288, allocations: 11.65 MB / 453.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001347/0.429, allocations: 43.59 kB / 453.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004661/0.4295, allocations: 172.9 kB / 453.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003672/0.4332, allocations: 2.332 MB / 456 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0202/0.4534, allocations: 9.985 MB / 466 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05921/0.5126, allocations: 44.5 MB / 0.4985 GB, free: 1.117 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.525, allocations: 5.335 MB / 0.5037 GB, free: 11.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003618/0.5286, allocations: 2.816 MB / 0.5065 GB, free: 8.805 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.5409, allocations: 8.123 MB / 0.5144 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.541, allocations: 51.88 kB / 0.5145 GB, free: 488 kB / 430.1 MB Notification: Performance of pre-optimization done (n=216): time 4.869e-06/0.541, allocations: 0 / 0.5145 GB, free: 488 kB / 430.1 MB Notification: Performance of matching and sorting (n=237): time 0.2244/0.7654, allocations: 20.79 MB / 0.5348 GB, free: 165 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/0.7655, allocations: 181 kB / 0.5349 GB, free: 164.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007233/0.7728, allocations: 4.764 MB / 0.5396 GB, free: 163.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005227/0.7733, allocations: 58.66 kB / 0.5396 GB, free: 163.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.7753, allocations: 3.395 MB / 0.543 GB, free: 160.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009056/0.7762, allocations: 0.8899 MB / 0.5438 GB, free: 159.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001662/0.7779, allocations: 1.38 MB / 0.5452 GB, free: 159.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.045e-05/0.778, allocations: 307 kB / 0.5455 GB, free: 158.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003406/0.7814, allocations: 2.702 MB / 0.5481 GB, free: 158.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004362/0.7857, allocations: 6.616 MB / 0.5546 GB, free: 151.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008513/0.7943, allocations: 10.08 MB / 0.5644 GB, free: 143.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/0.7944, allocations: 39.66 kB / 0.5645 GB, free: 143.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01486/0.8093, allocations: 10.19 MB / 0.5744 GB, free: 137.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.504e-05/0.8094, allocations: 68.06 kB / 0.5745 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001246/0.8095, allocations: 136 kB / 0.5746 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002506/0.812, allocations: 1.199 MB / 0.5758 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004724/0.8168, allocations: 1.611 MB / 0.5773 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006539/0.8233, allocations: 7.262 MB / 0.5844 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004864/0.8282, allocations: 395 kB / 0.5848 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006721/0.8289, allocations: 404 kB / 0.5852 GB, free: 126.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (835): * Single equations (assignments): 829 * 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,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002931/0.8319, allocations: 2.378 MB / 0.5875 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006757/0.8325, allocations: 410.7 kB / 0.5879 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006742/0.8393, allocations: 4.78 MB / 0.5926 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.555e-05/0.8393, allocations: 28.41 kB / 0.5926 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.8394, allocations: 4 kB / 0.5926 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.8394, allocations: 11.97 kB / 0.5926 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/0.8555, allocations: 10.9 MB / 0.6033 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/0.8556, allocations: 12.09 kB / 0.6033 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/0.8574, allocations: 427.3 kB / 0.6037 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/0.8596, allocations: 1.023 MB / 0.6047 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000256/0.8599, allocations: 43.98 kB / 0.6047 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006583/0.8665, allocations: 6.835 MB / 0.6114 GB, free: 99.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.8665, allocations: 4 kB / 0.6114 GB, free: 99.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00941/0.8759, allocations: 8.162 MB / 0.6194 GB, free: 91.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.8776, allocations: 0.8314 MB / 0.6202 GB, free: 90.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005647/0.8782, allocations: 44 kB / 0.6202 GB, free: 90.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001723/0.8799, allocations: 147.8 kB / 0.6204 GB, free: 90.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/0.8803, allocations: 153.6 kB / 0.6205 GB, free: 89.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.8804, allocations: 67.98 kB / 0.6206 GB, free: 89.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003508/0.8839, allocations: 3.05 MB / 0.6236 GB, free: 86.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.884, allocations: 0 / 0.6236 GB, free: 86.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005716/0.8897, allocations: 1.179 MB / 0.6247 GB, free: 85.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * Array equations: 3 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000637/0.8903, allocations: 196.9 kB / 0.6249 GB, free: 85.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01211/0.9025, allocations: 8.313 MB / 0.633 GB, free: 77.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/0.9025, allocations: 4.188 kB / 0.633 GB, free: 77.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004179/0.9067, allocations: 2.414 MB / 0.6354 GB, free: 74.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004799/0.9116, allocations: 0.5135 MB / 0.6359 GB, free: 74.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01919/0.9308, allocations: 13.56 MB / 0.6491 GB, free: 60.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003675/0.9345, allocations: 3.673 MB / 0.6527 GB, free: 56.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004898/0.9394, allocations: 2.222 MB / 0.6549 GB, free: 54.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009659/0.9404, allocations: 291.4 kB / 0.6551 GB, free: 54.33 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9404, allocations: 0 / 0.6551 GB, free: 54.33 MB / 446.1 MB Notification: Performance of Templates: time 0.2436/1.184, allocations: 46.3 MB / 0.7004 GB, free: 150.7 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches