Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",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.001551/0.001551, allocations: 103.7 kB / 16.27 MB, free: 5.996 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.00115/0.00115, allocations: 183.4 kB / 17.19 MB, free: 5.617 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.492/1.492, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2265/0.2265, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.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.00151/0.00151, allocations: 67.27 kB / 382.8 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1261, allocations: 57.79 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.01291/0.139, allocations: 14.23 MB / 454.8 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.1494, allocations: 4.661 MB / 459.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.1524, allocations: 91.75 kB / 459.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007428/0.1598, allocations: 3.777 MB / 463.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008336/0.1683, allocations: 2.408 MB / 465.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003412/0.1717, allocations: 1.01 MB / 466.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009721/0.1814, allocations: 6.018 MB / 472.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0059/0.1874, allocations: 4.757 MB / 477.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004165/0.1916, allocations: 2.114 MB / 479.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004822/0.1964, allocations: 2.885 MB / 482.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00175/0.1982, allocations: 456 kB / 483 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003947/0.2022, allocations: 1.482 MB / 484.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003331/0.2055, allocations: 2.688 MB / 487.2 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005832/0.2114, allocations: 3.092 MB / 490.3 MB, free: 4.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.2246, allocations: 9.494 MB / 499.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.2247, allocations: 0 / 499.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2247, allocations: 0 / 499.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003809/0.2251, allocations: 7.984 kB / 499.8 MB, free: 11.38 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.01951/0.2446, allocations: 6.741 MB / 0.4946 GB, free: 4.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.743e-05/0.2447, allocations: 11.89 kB / 0.4947 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00236/0.247, allocations: 0.93 MB / 0.4956 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04069/0.2877, allocations: 6.136 MB / 0.5016 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.2983, allocations: 4.774 MB / 0.5062 GB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003537/0.2987, allocations: 315.9 kB / 0.5065 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001752/0.3004, allocations: 415.6 kB / 0.5069 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02635/0.3268, allocations: 12.87 MB / 0.5195 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002798/0.3271, allocations: 55.53 kB / 0.5195 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001211/0.3284, allocations: 195.8 kB / 0.5197 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00489/0.3333, allocations: 2.507 MB / 0.5222 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2912/0.6244, allocations: 10.57 MB / 0.5325 GB, free: 79.54 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05687/0.6814, allocations: 49.68 MB / 0.581 GB, free: 43.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.6915, allocations: 4.434 MB / 0.5853 GB, free: 40.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002794/0.6944, allocations: 2.333 MB / 0.5876 GB, free: 38.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009875/0.7043, allocations: 6.486 MB / 0.594 GB, free: 31.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.7043, allocations: 55.59 kB / 0.594 GB, free: 31.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.859e-06/0.7044, allocations: 0 / 0.594 GB, free: 31.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=195): time 0.0391/0.7435, allocations: 17.64 MB / 0.6112 GB, free: 13.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.7436, allocations: 223.2 kB / 0.6115 GB, free: 13.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00767/0.7513, allocations: 5.945 MB / 0.6173 GB, free: 7.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000567/0.7519, allocations: 49.7 kB / 0.6173 GB, free: 7.535 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002387/0.7543, allocations: 4.113 MB / 0.6213 GB, free: 3.426 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008785/0.7552, allocations: 0.7712 MB / 0.6221 GB, free: 2.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001884/0.7571, allocations: 1.461 MB / 0.6235 GB, free: 1.195 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.7572, allocations: 305.1 kB / 0.6238 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003645/0.7608, allocations: 2.419 MB / 0.6262 GB, free: 14.47 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007069/0.7679, allocations: 6.925 MB / 0.6329 GB, free: 5.312 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/0.7808, allocations: 10.13 MB / 0.6428 GB, free: 8.953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001496/0.781, allocations: 48 kB / 0.6429 GB, free: 8.906 MB / 446.1 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.01958/0.8006, allocations: 9.582 MB / 0.6522 GB, free: 15.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.8008, allocations: 72 kB / 0.6523 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002839/0.8011, allocations: 160 kB / 0.6524 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002125/0.8033, allocations: 0.7319 MB / 0.6532 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006077/0.8094, allocations: 1.669 MB / 0.6548 GB, free: 12.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00817/0.8176, allocations: 6.982 MB / 0.6616 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006408/0.824, allocations: 393.7 kB / 0.662 GB, free: 5.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.8251, allocations: 451.9 kB / 0.6624 GB, free: 4.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * Number of states: 0 () * Number of discrete variables: 45 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (880): * Single equations (assignments): 873 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005448/0.8306, allocations: 2.694 MB / 0.665 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.8316, allocations: 493.6 kB / 0.6655 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005673/0.8373, allocations: 3.293 MB / 0.6687 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.41e-05/0.8373, allocations: 24 kB / 0.6687 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.8373, allocations: 4 kB / 0.6687 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/0.8374, allocations: 7.969 kB / 0.6688 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/0.8528, allocations: 8.844 MB / 0.6774 GB, free: 5.137 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/0.8529, allocations: 4 kB / 0.6774 GB, free: 5.133 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/0.8545, allocations: 327.8 kB / 0.6777 GB, free: 4.812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/0.8559, allocations: 0.4933 MB / 0.6782 GB, free: 4.312 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.8561, allocations: 43.89 kB / 0.6782 GB, free: 4.273 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007289/0.8634, allocations: 6.297 MB / 0.6844 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.8634, allocations: 8.219 kB / 0.6844 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009438/0.8728, allocations: 5.965 MB / 0.6902 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002505/0.8754, allocations: 0.8148 MB / 0.691 GB, free: 6.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000922/0.8763, allocations: 43.92 kB / 0.6911 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/0.8781, allocations: 99.81 kB / 0.6911 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/0.8785, allocations: 113.1 kB / 0.6913 GB, free: 6.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.8786, allocations: 52 kB / 0.6913 GB, free: 6.539 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00689/0.8855, allocations: 3.808 MB / 0.695 GB, free: 2.758 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8855, allocations: 4 kB / 0.695 GB, free: 2.754 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007357/0.8929, allocations: 1.233 MB / 0.6962 GB, free: 1.523 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (154): * Single equations (assignments): 149 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009981/0.9029, allocations: 6.632 MB / 0.7027 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01128/0.9142, allocations: 6.541 MB / 0.7091 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/0.9143, allocations: 0 / 0.7091 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0027/0.917, allocations: 1.785 MB / 0.7108 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004001/0.921, allocations: 0.6636 MB / 0.7115 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3232/1.244, allocations: 72.74 MB / 0.7825 GB, free: 131.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003899/1.248, allocations: 4.127 MB / 0.7866 GB, free: 128.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005535/1.254, allocations: 2.32 MB / 0.7888 GB, free: 125.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003351/1.257, allocations: 2.573 MB / 0.7913 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/1.257, allocations: 3.609 kB / 0.7913 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1406/1.398, allocations: 95.81 MB / 0.8849 GB, free: 27.45 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.73, allocations: 3.938 kB / 0.8849 GB, free: 27.45 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches