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.001882/0.001882, allocations: 105.1 kB / 16.92 MB, free: 5.781 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.002127/0.002127, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.548/2.548, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 50.2 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1685, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.02442/0.193, allocations: 11.4 MB / 361.6 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.2071, allocations: 4.073 MB / 365.6 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.2097, allocations: 71.81 kB / 365.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01057/0.2204, allocations: 3.205 MB / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.303/0.5234, allocations: 1.937 MB / 370.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004083/0.5275, allocations: 0.8306 MB / 371.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0115/0.5391, allocations: 4.438 MB / 376.1 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009086/0.5482, allocations: 4.068 MB / 380.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005914/0.5542, allocations: 1.654 MB / 381.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006483/0.5607, allocations: 2.152 MB / 384 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002188/0.563, allocations: 357.3 kB / 384.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00496/0.568, allocations: 1.261 MB / 385.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003523/0.5715, allocations: 2.064 MB / 387.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00605/0.5776, allocations: 2.389 MB / 390.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.5921, allocations: 7.455 MB / 397.5 MB, free: 1.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.5922, allocations: 0 / 397.5 MB, free: 1.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5922, allocations: 0 / 397.5 MB, free: 1.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002991/0.5925, allocations: 0 / 397.5 MB, free: 1.273 MB / 302.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.02402/0.6165, allocations: 5.277 MB / 402.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.975e-05/0.6167, allocations: 8.031 kB / 402.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004156/0.6208, allocations: 0.7568 MB / 403.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0444/0.6653, allocations: 3.914 MB / 407.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/0.6777, allocations: 3.079 MB / 410.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004329/0.6782, allocations: 257.5 kB / 410.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002207/0.6804, allocations: 317.8 kB / 411.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04113/0.7216, allocations: 10.76 MB / 421.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004779/0.7221, allocations: 42.11 kB / 421.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002365/0.7245, allocations: 158.5 kB / 422.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007386/0.732, allocations: 2.149 MB / 424.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03537/0.7674, allocations: 9.099 MB / 433.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09986/0.8673, allocations: 41.68 MB / 475 MB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02342/0.8908, allocations: 4.43 MB / 479.4 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006006/0.8968, allocations: 2.434 MB / 481.9 MB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02185/0.9187, allocations: 7.24 MB / 489.1 MB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.662e-05/0.9189, allocations: 51.5 kB / 489.2 MB, free: 5.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 1.271e-05/0.9189, allocations: 3.984 kB / 489.2 MB, free: 5.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.09625/1.015, allocations: 17.91 MB / 0.4952 GB, free: 3.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001927/1.015, allocations: 175.5 kB / 0.4953 GB, free: 2.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01502/1.031, allocations: 4.624 MB / 0.4999 GB, free: 14.26 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006438/1.031, allocations: 61.53 kB / 0.4999 GB, free: 14.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005555/1.037, allocations: 3.234 MB / 0.5031 GB, free: 10.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002019/1.039, allocations: 0.7508 MB / 0.5038 GB, free: 10.22 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005156/1.044, allocations: 1.264 MB / 0.505 GB, free: 8.945 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002331/1.044, allocations: 305.1 kB / 0.5053 GB, free: 8.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007377/1.052, allocations: 2.284 MB / 0.5076 GB, free: 6.355 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01348/1.065, allocations: 6.028 MB / 0.5135 GB, free: 14.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02183/1.087, allocations: 9.049 MB / 0.5223 GB, free: 3.613 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001809/1.087, allocations: 40 kB / 0.5223 GB, free: 3.574 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.4163/1.504, allocations: 8.866 MB / 0.531 GB, free: 141.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/1.504, allocations: 60.47 kB / 0.531 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003881/1.504, allocations: 132.6 kB / 0.5312 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004653/1.509, allocations: 0.9428 MB / 0.5321 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01021/1.519, allocations: 1.422 MB / 0.5335 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01678/1.536, allocations: 6.54 MB / 0.5399 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/1.546, allocations: 341.7 kB / 0.5402 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002095/1.549, allocations: 380.9 kB / 0.5406 GB, free: 138.6 MB / 446.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.007634/1.556, allocations: 2.239 MB / 0.5427 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00172/1.558, allocations: 391.6 kB / 0.5431 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/1.569, allocations: 3.695 MB / 0.5467 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.734e-05/1.569, allocations: 18.81 kB / 0.5467 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.28e-05/1.569, allocations: 7.625 kB / 0.5468 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.132e-05/1.569, allocations: 12.16 kB / 0.5468 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02707/1.596, allocations: 9.251 MB / 0.5558 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.39e-05/1.596, allocations: 6.438 kB / 0.5558 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002543/1.599, allocations: 319.4 kB / 0.5561 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003398/1.602, allocations: 0.7614 MB / 0.5569 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002837/1.602, allocations: 50.77 kB / 0.5569 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/1.615, allocations: 6.062 MB / 0.5628 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/1.615, allocations: 5.062 kB / 0.5628 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01614/1.631, allocations: 6.587 MB / 0.5693 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003047/1.635, allocations: 467.8 kB / 0.5697 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001806/1.636, allocations: 36 kB / 0.5697 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003681/1.64, allocations: 116.4 kB / 0.5699 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006805/1.641, allocations: 127.7 kB / 0.57 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002547/1.641, allocations: 56 kB / 0.57 GB, free: 122.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008366/1.65, allocations: 2.968 MB / 0.5729 GB, free: 119.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.91e-07/1.65, allocations: 0 / 0.5729 GB, free: 119.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01237/1.662, allocations: 1.054 MB / 0.574 GB, free: 118 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 (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.01534/1.677, allocations: 7.258 MB / 0.581 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01671/1.694, allocations: 6.654 MB / 0.5875 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-05/1.694, allocations: 4.312 kB / 0.5875 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004879/1.699, allocations: 1.978 MB / 0.5895 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005507/1.705, allocations: 0.5259 MB / 0.59 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1237/1.828, allocations: 58.91 MB / 0.6475 GB, free: 34.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005915/1.834, allocations: 3.453 MB / 0.6509 GB, free: 30.74 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.009038/1.843, allocations: 2.049 MB / 0.6529 GB, free: 28.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005158/1.849, allocations: 2.054 MB / 0.6549 GB, free: 26.63 MB / 446.1 MB Notification: Performance of SimCode: time 1.883e-06/1.849, allocations: 0 / 0.6549 GB, free: 26.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5855/2.434, allocations: 81.46 MB / 0.7345 GB, free: 142.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.46/21.89, allocations: 11.02 kB / 0.7345 GB, free: 142.2 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches