Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001173/0.001173, allocations: 195.9 kB / 18 MB, free: 4.965 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3643, allocations: 49.43 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01435/0.3787, allocations: 11.41 MB / 411.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009241/0.388, allocations: 4.065 MB / 415.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.39, allocations: 67.88 kB / 415.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006055/0.3962, allocations: 3.197 MB / 419 MB, free: 6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005177/0.4014, allocations: 1.953 MB / 420.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001901/0.4033, allocations: 0.8266 MB / 421.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00675/0.41, allocations: 4.461 MB / 426.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005112/0.4152, allocations: 4.048 MB / 430.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002681/0.4179, allocations: 1.659 MB / 431.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003275/0.4212, allocations: 2.149 MB / 434.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008119/0.422, allocations: 356 kB / 434.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002584/0.4246, allocations: 1.26 MB / 435.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00226/0.4269, allocations: 2.061 MB / 437.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00318/0.4301, allocations: 2.392 MB / 440.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.4405, allocations: 7.727 MB / 447.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4405, allocations: 0 / 447.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4405, allocations: 0 / 447.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002393/0.4407, allocations: 0 / 447.9 MB, free: 8.969 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01276/0.4535, allocations: 5.42 MB / 453.3 MB, free: 3.469 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4536, allocations: 11.89 kB / 453.3 MB, free: 3.457 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001421/0.455, allocations: 0.7609 MB / 454.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02321/0.4782, allocations: 3.949 MB / 458 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007082/0.4853, allocations: 3.132 MB / 461.1 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.4856, allocations: 254.3 kB / 461.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009871/0.4866, allocations: 331.8 kB / 461.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02043/0.507, allocations: 10.75 MB / 472.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/0.5072, allocations: 43.64 kB / 472.5 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000465/0.5076, allocations: 151.9 kB / 472.7 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003786/0.5114, allocations: 2.158 MB / 474.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01953/0.531, allocations: 9.09 MB / 483.9 MB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05706/0.5881, allocations: 41.56 MB / 0.5132 GB, free: 9.367 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01217/0.6003, allocations: 4.432 MB / 0.5175 GB, free: 4.793 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003473/0.6038, allocations: 2.45 MB / 0.5199 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01207/0.6159, allocations: 7.245 MB / 0.5269 GB, free: 10.88 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.616, allocations: 51.56 kB / 0.527 GB, free: 10.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.408e-06/0.616, allocations: 0 / 0.527 GB, free: 10.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2666/0.8826, allocations: 18.16 MB / 0.5447 GB, free: 128 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.8827, allocations: 171.3 kB / 0.5449 GB, free: 127.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005559/0.8883, allocations: 4.636 MB / 0.5494 GB, free: 126.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003579/0.8887, allocations: 56.95 kB / 0.5495 GB, free: 126.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001609/0.8903, allocations: 3.364 MB / 0.5528 GB, free: 123.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000728/0.891, allocations: 0.7875 MB / 0.5535 GB, free: 123.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/0.8924, allocations: 1.265 MB / 0.5548 GB, free: 122.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.945e-05/0.8925, allocations: 312.8 kB / 0.5551 GB, free: 122.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002694/0.8952, allocations: 2.286 MB / 0.5573 GB, free: 121.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003917/0.8991, allocations: 6.03 MB / 0.5632 GB, free: 115.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007133/0.9063, allocations: 9.042 MB / 0.572 GB, free: 105.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.866e-05/0.9064, allocations: 40 kB / 0.5721 GB, free: 105.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01308/0.9194, allocations: 8.897 MB / 0.5807 GB, free: 96.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.168e-05/0.9195, allocations: 60 kB / 0.5808 GB, free: 96.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/0.9196, allocations: 132 kB / 0.5809 GB, free: 96.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001944/0.9216, allocations: 0.9415 MB / 0.5818 GB, free: 95.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003936/0.9255, allocations: 1.419 MB / 0.5832 GB, free: 94.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006247/0.9318, allocations: 6.518 MB / 0.5896 GB, free: 87.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/0.9365, allocations: 343.7 kB / 0.5899 GB, free: 87.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008567/0.9374, allocations: 383.4 kB / 0.5903 GB, free: 86.69 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (753): * Single equations (assignments): 747 * 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.003238/0.9406, allocations: 2.235 MB / 0.5925 GB, free: 84.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007169/0.9413, allocations: 413.2 kB / 0.5929 GB, free: 84.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005425/0.9468, allocations: 3.691 MB / 0.5965 GB, free: 80.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/0.9468, allocations: 20 kB / 0.5965 GB, free: 80.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.9469, allocations: 4 kB / 0.5965 GB, free: 80.31 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-05/0.9469, allocations: 23.89 kB / 0.5965 GB, free: 80.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.96, allocations: 9.157 MB / 0.6055 GB, free: 71.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.96, allocations: 4 kB / 0.6055 GB, free: 71.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.9614, allocations: 320.1 kB / 0.6058 GB, free: 70.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/0.9632, allocations: 0.7685 MB / 0.6065 GB, free: 69.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/0.9634, allocations: 43.98 kB / 0.6066 GB, free: 69.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006223/0.9696, allocations: 6.112 MB / 0.6125 GB, free: 63.67 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.9696, allocations: 4 kB / 0.6125 GB, free: 63.67 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007518/0.9771, allocations: 6.621 MB / 0.619 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.9782, allocations: 490.1 kB / 0.6195 GB, free: 56.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000449/0.9787, allocations: 35.83 kB / 0.6195 GB, free: 56.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.9802, allocations: 115.8 kB / 0.6196 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003041/0.9805, allocations: 133.1 kB / 0.6197 GB, free: 56.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.9806, allocations: 52 kB / 0.6198 GB, free: 56.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003487/0.9841, allocations: 2.969 MB / 0.6227 GB, free: 53.17 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9841, allocations: 0 / 0.6227 GB, free: 53.17 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004434/0.9885, allocations: 1.051 MB / 0.6237 GB, free: 52.12 MB / 462.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 (157): * Single equations (assignments): 153 * 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.007525/0.9961, allocations: 7.284 MB / 0.6308 GB, free: 44.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006758/1.003, allocations: 5.575 MB / 0.6363 GB, free: 39.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.003, allocations: 0 / 0.6363 GB, free: 39.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/1.005, allocations: 1.978 MB / 0.6382 GB, free: 37.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/1.008, allocations: 0.5281 MB / 0.6387 GB, free: 36.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06765/1.076, allocations: 50.8 MB / 0.6883 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005427/1.081, allocations: 3.455 MB / 0.6917 GB, free: 8.395 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007846/1.089, allocations: 2.045 MB / 0.6937 GB, free: 6.344 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004917/1.094, allocations: 2.061 MB / 0.6957 GB, free: 4.281 MB / 494.1 MB Notification: Performance of SimCode: time 1.483e-06/1.094, allocations: 0 / 0.6957 GB, free: 4.281 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4185/1.513, allocations: 77.39 MB / 0.7713 GB, free: 149.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.93/27.44, allocations: 7.797 kB / 0.7713 GB, free: 149.7 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches