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.001307/0.001307, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2695, allocations: 50.53 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01174/0.2812, allocations: 11.18 MB / 419.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008065/0.2893, allocations: 4.049 MB / 424 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.2912, allocations: 67.81 kB / 424.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006092/0.2973, allocations: 3.173 MB / 427.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00724/0.3046, allocations: 1.926 MB / 429.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002235/0.3069, allocations: 0.8227 MB / 430 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006923/0.3138, allocations: 4.398 MB / 434.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005461/0.3193, allocations: 4.024 MB / 438.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003374/0.3227, allocations: 1.612 MB / 440 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003546/0.3263, allocations: 2.122 MB / 442.1 MB, free: 0 / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001475/0.3278, allocations: 344 kB / 442.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003373/0.3312, allocations: 1.233 MB / 443.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002958/0.3342, allocations: 2.007 MB / 445.7 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004439/0.3387, allocations: 2.307 MB / 448 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.3494, allocations: 7.459 MB / 455.5 MB, free: 2.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.3495, allocations: 0 / 455.5 MB, free: 2.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.3495, allocations: 8 kB / 455.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003055/0.3498, allocations: 0 / 455.5 MB, free: 2.602 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.01506/0.3649, allocations: 5.283 MB / 460.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.365, allocations: 12.03 kB / 460.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002239/0.3672, allocations: 0.7321 MB / 461.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02256/0.3898, allocations: 3.894 MB / 465.4 MB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007661/0.3975, allocations: 2.984 MB / 468.4 MB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.3978, allocations: 234.2 kB / 468.6 MB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/0.3992, allocations: 331.8 kB / 468.9 MB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/0.4184, allocations: 10.38 MB / 479.3 MB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.4186, allocations: 43.64 kB / 479.4 MB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004734/0.4191, allocations: 155.9 kB / 479.5 MB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00326/0.4223, allocations: 2.025 MB / 481.5 MB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01698/0.4393, allocations: 8.788 MB / 490.3 MB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05267/0.492, allocations: 40.66 MB / 0.5185 GB, free: 5.125 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01154/0.5036, allocations: 4.439 MB / 0.5229 GB, free: 0.543 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003189/0.5069, allocations: 2.43 MB / 0.5253 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0122/0.5191, allocations: 7.203 MB / 0.5323 GB, free: 6.691 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.5192, allocations: 59.44 kB / 0.5323 GB, free: 6.625 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.999e-06/0.5192, allocations: 3.938 kB / 0.5324 GB, free: 6.621 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2487/0.7679, allocations: 18.05 MB / 0.55 GB, free: 121.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.768, allocations: 178.1 kB / 0.5501 GB, free: 121 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005017/0.773, allocations: 4.576 MB / 0.5546 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004028/0.7735, allocations: 56.2 kB / 0.5547 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.7752, allocations: 3.275 MB / 0.5579 GB, free: 117.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008533/0.7761, allocations: 0.781 MB / 0.5586 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001571/0.7777, allocations: 1.254 MB / 0.5599 GB, free: 116 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.838e-05/0.7777, allocations: 301.1 kB / 0.5601 GB, free: 115.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/0.7805, allocations: 2.276 MB / 0.5624 GB, free: 114.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004241/0.7847, allocations: 5.954 MB / 0.5682 GB, free: 106.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007798/0.7926, allocations: 8.946 MB / 0.5769 GB, free: 95.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.172e-05/0.7927, allocations: 36 kB / 0.5769 GB, free: 95.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01315/0.8059, allocations: 8.825 MB / 0.5856 GB, free: 86.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.191e-05/0.806, allocations: 64 kB / 0.5856 GB, free: 86.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.8061, allocations: 128 kB / 0.5857 GB, free: 86.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.8081, allocations: 0.9413 MB / 0.5867 GB, free: 85.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/0.8123, allocations: 1.404 MB / 0.588 GB, free: 84.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006196/0.8186, allocations: 6.519 MB / 0.5944 GB, free: 77.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004638/0.8232, allocations: 335.2 kB / 0.5947 GB, free: 77.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007478/0.824, allocations: 384 kB / 0.5951 GB, free: 76.95 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.002979/0.827, allocations: 2.179 MB / 0.5972 GB, free: 74.76 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007304/0.8277, allocations: 412.6 kB / 0.5976 GB, free: 74.36 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005178/0.8329, allocations: 3.683 MB / 0.6012 GB, free: 70.66 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-05/0.833, allocations: 23.94 kB / 0.6012 GB, free: 70.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.833, allocations: 4 kB / 0.6012 GB, free: 70.63 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/0.833, allocations: 19.89 kB / 0.6013 GB, free: 70.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01347/0.8465, allocations: 9.051 MB / 0.6101 GB, free: 61.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/0.8465, allocations: 8 kB / 0.6101 GB, free: 61.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.848, allocations: 319.5 kB / 0.6104 GB, free: 61.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/0.8498, allocations: 0.7659 MB / 0.6112 GB, free: 60.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002344/0.8501, allocations: 43.98 kB / 0.6112 GB, free: 60.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006298/0.8564, allocations: 6.119 MB / 0.6172 GB, free: 54.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.8564, allocations: 4 kB / 0.6172 GB, free: 54.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007936/0.8644, allocations: 6.612 MB / 0.6236 GB, free: 47.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.8657, allocations: 478.2 kB / 0.6241 GB, free: 46.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000658/0.8663, allocations: 52.31 kB / 0.6241 GB, free: 46.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.868, allocations: 115.8 kB / 0.6242 GB, free: 46.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002955/0.8683, allocations: 129 kB / 0.6244 GB, free: 46.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.8685, allocations: 56 kB / 0.6244 GB, free: 46.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003724/0.8722, allocations: 2.928 MB / 0.6273 GB, free: 43.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8722, allocations: 0 / 0.6273 GB, free: 43.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00606/0.8783, allocations: 1.027 MB / 0.6283 GB, free: 42.6 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.008097/0.8864, allocations: 7.266 MB / 0.6354 GB, free: 35.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00738/0.8938, allocations: 5.537 MB / 0.6408 GB, free: 29.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/0.8939, allocations: 4.312 kB / 0.6408 GB, free: 29.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.8967, allocations: 1.975 MB / 0.6427 GB, free: 27.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003588/0.9003, allocations: 0.5059 MB / 0.6432 GB, free: 27.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07186/0.9722, allocations: 50.14 MB / 0.6922 GB, free: 3.191 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004833/0.9771, allocations: 3.367 MB / 0.6955 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004883/0.982, allocations: 2.03 MB / 0.6975 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003402/0.9854, allocations: 1.987 MB / 0.6994 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of SimCode: time 1.272e-06/0.9855, allocations: 0 / 0.6994 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3673/1.353, allocations: 76.42 MB / 0.774 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.77/27.13, allocations: 13.12 kB / 0.774 GB, free: 168 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.0.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