Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001304/0.001304, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 56.14 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2779, allocations: 50.55 MB / 408.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01354/0.2915, allocations: 11.18 MB / 419.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008339/0.2999, allocations: 4.038 MB / 424 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.3018, allocations: 67.88 kB / 424.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005857/0.3078, allocations: 3.173 MB / 427.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004727/0.3125, allocations: 1.879 MB / 429.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.3143, allocations: 0.8305 MB / 429.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006585/0.3209, allocations: 4.406 MB / 434.3 MB, free: 8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005174/0.3261, allocations: 4.008 MB / 438.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002962/0.3291, allocations: 1.612 MB / 440 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003391/0.3325, allocations: 2.114 MB / 442.1 MB, free: 192 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.3335, allocations: 348 kB / 442.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002741/0.3363, allocations: 1.233 MB / 443.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002181/0.3385, allocations: 1.995 MB / 445.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00257/0.3411, allocations: 2.311 MB / 448 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009774/0.3509, allocations: 7.455 MB / 455.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.3509, allocations: 7.984 kB / 455.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3509, allocations: 0 / 455.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002351/0.3512, allocations: 0 / 455.4 MB, free: 2.797 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01417/0.3654, allocations: 5.287 MB / 460.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.3654, allocations: 8.031 kB / 460.7 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001856/0.3673, allocations: 0.7282 MB / 461.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02182/0.3891, allocations: 3.894 MB / 465.3 MB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006787/0.396, allocations: 2.992 MB / 468.3 MB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/0.3962, allocations: 238.2 kB / 468.6 MB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/0.3972, allocations: 319.8 kB / 468.9 MB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02011/0.4174, allocations: 10.38 MB / 479.3 MB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001485/0.4176, allocations: 43.62 kB / 479.3 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000644/0.4182, allocations: 155.9 kB / 479.4 MB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003588/0.4218, allocations: 2.025 MB / 481.5 MB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01886/0.4407, allocations: 8.784 MB / 490.3 MB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05695/0.4977, allocations: 40.68 MB / 0.5185 GB, free: 5.312 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01226/0.51, allocations: 4.439 MB / 0.5228 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003564/0.5136, allocations: 2.426 MB / 0.5252 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01319/0.5268, allocations: 7.214 MB / 0.5322 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.323e-05/0.527, allocations: 51.56 kB / 0.5323 GB, free: 6.812 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.681e-06/0.527, allocations: 0 / 0.5323 GB, free: 6.812 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.273/0.8, allocations: 18.04 MB / 0.5499 GB, free: 121.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.8001, allocations: 178.4 kB / 0.5501 GB, free: 121 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/0.8049, allocations: 4.578 MB / 0.5545 GB, free: 119.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003329/0.8053, allocations: 53.45 kB / 0.5546 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001527/0.8068, allocations: 3.271 MB / 0.5578 GB, free: 117.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006761/0.8075, allocations: 0.7811 MB / 0.5586 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/0.8088, allocations: 1.254 MB / 0.5598 GB, free: 116 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.902e-05/0.8089, allocations: 301.1 kB / 0.5601 GB, free: 115.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.8113, allocations: 2.283 MB / 0.5623 GB, free: 114.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003572/0.8149, allocations: 5.957 MB / 0.5681 GB, free: 106.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006954/0.8219, allocations: 8.948 MB / 0.5769 GB, free: 95.94 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.504e-05/0.822, allocations: 36 kB / 0.5769 GB, free: 95.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01311/0.8351, allocations: 8.816 MB / 0.5855 GB, free: 87.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-05/0.8353, allocations: 60 kB / 0.5856 GB, free: 87.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001335/0.8354, allocations: 128 kB / 0.5857 GB, free: 86.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.8374, allocations: 0.9456 MB / 0.5866 GB, free: 85.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004134/0.8416, allocations: 1.411 MB / 0.588 GB, free: 84.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006526/0.8482, allocations: 6.522 MB / 0.5943 GB, free: 77.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00489/0.8531, allocations: 343.6 kB / 0.5947 GB, free: 77.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009173/0.854, allocations: 372.4 kB / 0.595 GB, free: 77.18 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (744): * Single equations (assignments): 738 * 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.003708/0.8578, allocations: 2.179 MB / 0.5972 GB, free: 74.99 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008737/0.8587, allocations: 409.2 kB / 0.5975 GB, free: 74.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005718/0.8644, allocations: 3.695 MB / 0.6012 GB, free: 70.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.141e-05/0.8645, allocations: 20 kB / 0.6012 GB, free: 70.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.8645, allocations: 11.94 kB / 0.6012 GB, free: 70.85 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.859e-05/0.8645, allocations: 7.969 kB / 0.6012 GB, free: 70.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/0.8804, allocations: 9.048 MB / 0.61 GB, free: 61.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.498e-05/0.8805, allocations: 4 kB / 0.61 GB, free: 61.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.882, allocations: 320.2 kB / 0.6103 GB, free: 61.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.8838, allocations: 0.7694 MB / 0.6111 GB, free: 60.61 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002782/0.8841, allocations: 40 kB / 0.6111 GB, free: 60.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006567/0.8906, allocations: 6.118 MB / 0.6171 GB, free: 54.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.8907, allocations: 11.94 kB / 0.6171 GB, free: 54.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009419/0.9001, allocations: 6.62 MB / 0.6236 GB, free: 47.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.9015, allocations: 478.2 kB / 0.624 GB, free: 47.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/0.9027, allocations: 35.94 kB / 0.6241 GB, free: 47.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/0.9051, allocations: 119.8 kB / 0.6242 GB, free: 46.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005371/0.9057, allocations: 125 kB / 0.6243 GB, free: 46.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/0.906, allocations: 56 kB / 0.6244 GB, free: 46.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004821/0.9108, allocations: 2.932 MB / 0.6272 GB, free: 43.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9108, allocations: 0 / 0.6272 GB, free: 43.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005862/0.9167, allocations: 1.023 MB / 0.6282 GB, free: 42.83 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.009389/0.9261, allocations: 7.273 MB / 0.6353 GB, free: 35.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00802/0.9342, allocations: 5.54 MB / 0.6407 GB, free: 29.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/0.9342, allocations: 0 / 0.6407 GB, free: 29.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002963/0.9372, allocations: 1.978 MB / 0.6427 GB, free: 27.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004432/0.9417, allocations: 0.5068 MB / 0.6432 GB, free: 27.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08798/1.03, allocations: 50.14 MB / 0.6921 GB, free: 3.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006333/1.036, allocations: 3.363 MB / 0.6954 GB, free: 8 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005913/1.042, allocations: 2.027 MB / 0.6974 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004005/1.046, allocations: 1.999 MB / 0.6993 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of SimCode: time 1.132e-06/1.046, allocations: 0 / 0.6993 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3758/1.422, allocations: 76.41 MB / 0.774 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.28/29.7, allocations: 6.484 kB / 0.774 GB, free: 168.2 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches