Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.MultiBody.Forces.Force,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force") translateModel(ModelicaTest.MultiBody.Forces.Force,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 111.9 kB / 17.86 MB, free: 5.504 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.001352/0.001353, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.38/1.38, allocations: 222.9 MB / 242.5 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2241/0.2241, allocations: 44.17 MB / 336.8 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 68.06 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1146, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Force): time 0.3135/0.4281, allocations: 89.18 MB / 0.5453 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0429/0.4711, allocations: 17.1 MB / 0.562 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02292/0.494, allocations: 389.2 kB / 0.5623 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009952/0.504, allocations: 5.046 MB / 0.5673 GB, free: 240 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007891/0.512, allocations: 2.396 MB / 0.5696 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.5152, allocations: 1.018 MB / 0.5706 GB, free: 12.81 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.528, allocations: 10.09 MB / 0.5805 GB, free: 2.703 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00953/0.5375, allocations: 5.739 MB / 0.5861 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004279/0.5418, allocations: 2.176 MB / 0.5882 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005422/0.5473, allocations: 3.509 MB / 0.5916 GB, free: 7.199 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001824/0.5491, allocations: 380 kB / 0.592 GB, free: 6.828 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003698/0.5529, allocations: 1.342 MB / 0.5933 GB, free: 5.484 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004062/0.557, allocations: 2.945 MB / 0.5962 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006119/0.5631, allocations: 3.301 MB / 0.5994 GB, free: 15.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009926/0.573, allocations: 8.396 MB / 0.6076 GB, free: 6.797 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.5731, allocations: 4 kB / 0.6076 GB, free: 6.793 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5731, allocations: 3.938 kB / 0.6076 GB, free: 6.789 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004357/0.5736, allocations: 0 / 0.6076 GB, free: 6.789 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02261/0.5962, allocations: 7.518 MB / 0.6149 GB, free: 15.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.562e-05/0.5963, allocations: 12.03 kB / 0.6149 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/0.6097, allocations: 2.765 MB / 0.6176 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/0.62, allocations: 4.285 MB / 0.6218 GB, free: 8.023 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004022/0.6205, allocations: 361.8 kB / 0.6222 GB, free: 7.668 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002085/0.6226, allocations: 487.6 kB / 0.6226 GB, free: 7.191 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03135/0.654, allocations: 15.06 MB / 0.6373 GB, free: 7.137 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003402/0.6543, allocations: 71.3 kB / 0.6374 GB, free: 7.066 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/0.6562, allocations: 231.8 kB / 0.6376 GB, free: 6.84 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005623/0.6619, allocations: 2.867 MB / 0.6404 GB, free: 3.969 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02799/0.6899, allocations: 12.81 MB / 0.653 GB, free: 7.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3371/1.027, allocations: 59.09 MB / 0.7107 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01879/1.046, allocations: 7.279 MB / 0.7178 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004786/1.051, allocations: 3.891 MB / 0.7216 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01476/1.065, allocations: 9.011 MB / 0.7304 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/1.066, allocations: 69.17 kB / 0.7304 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=246): time 5.971e-06/1.066, allocations: 0 / 0.7304 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=288): time 0.07946/1.145, allocations: 32.86 MB / 0.7625 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.533e-05/1.145, allocations: 235.6 kB / 0.7627 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/1.155, allocations: 6.714 MB / 0.7693 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007316/1.156, allocations: 69.7 kB / 0.7694 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002565/1.159, allocations: 4.462 MB / 0.7737 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.16, allocations: 1.1 MB / 0.7748 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003981/1.164, allocations: 1.8 MB / 0.7766 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.96e-05/1.164, allocations: 305.1 kB / 0.7768 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004843/1.169, allocations: 3.624 MB / 0.7804 GB, free: 110 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007095/1.176, allocations: 8.66 MB / 0.7888 GB, free: 99.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/1.189, allocations: 13.21 MB / 0.8017 GB, free: 83.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001944/1.189, allocations: 48 kB / 0.8018 GB, free: 83.65 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.02459/1.213, allocations: 14.09 MB / 0.8155 GB, free: 69.54 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002265/1.214, allocations: 81 kB / 0.8156 GB, free: 69.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002621/1.214, allocations: 180 kB / 0.8158 GB, free: 69.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005699/1.22, allocations: 2.256 MB / 0.818 GB, free: 67.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0065/1.226, allocations: 2.035 MB / 0.82 GB, free: 64.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/1.241, allocations: 13.28 MB / 0.833 GB, free: 51.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007096/1.248, allocations: 0.5071 MB / 0.8335 GB, free: 50.94 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001623/1.249, allocations: 0.5152 MB / 0.834 GB, free: 50.43 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 802 * Number of states: 0 () * Number of discrete variables: 67 (force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1064): * Single equations (assignments): 1057 * 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 {(2,22,100.0%), (2,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005458/1.255, allocations: 3.045 MB / 0.8369 GB, free: 47.38 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/1.256, allocations: 0.563 MB / 0.8375 GB, free: 46.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/1.268, allocations: 7.236 MB / 0.8445 GB, free: 39.55 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.132e-05/1.268, allocations: 28 kB / 0.8446 GB, free: 39.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-05/1.268, allocations: 13.08 kB / 0.8446 GB, free: 39.51 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.626e-05/1.268, allocations: 15.89 kB / 0.8446 GB, free: 39.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02852/1.297, allocations: 15.27 MB / 0.8595 GB, free: 24.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.297e-05/1.297, allocations: 4 kB / 0.8595 GB, free: 24.17 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002455/1.3, allocations: 495.2 kB / 0.86 GB, free: 23.69 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005014/1.305, allocations: 2.015 MB / 0.862 GB, free: 21.67 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007022/1.305, allocations: 51.94 kB / 0.862 GB, free: 21.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/1.32, allocations: 12.58 MB / 0.8743 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.32, allocations: 11.94 kB / 0.8743 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01749/1.337, allocations: 11.47 MB / 0.8855 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/1.339, allocations: 0.638 MB / 0.8861 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001971/1.341, allocations: 52 kB / 0.8862 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003879/1.345, allocations: 207.6 kB / 0.8864 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/1.346, allocations: 177.6 kB / 0.8865 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005964/1.347, allocations: 79.98 kB / 0.8866 GB, free: 11.97 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008999/1.356, allocations: 4.293 MB / 0.8908 GB, free: 7.688 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.91e-07/1.356, allocations: 0 / 0.8908 GB, free: 7.688 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01016/1.366, allocations: 1.62 MB / 0.8924 GB, free: 6.07 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (232): * Single equations (assignments): 227 * 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 {(4,17,75.0%), (4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001164/1.367, allocations: 201 kB / 0.8926 GB, free: 5.871 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01566/1.383, allocations: 8.751 MB / 0.9011 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/1.383, allocations: 4.188 kB / 0.9011 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007348/1.39, allocations: 3.535 MB / 0.9046 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00754/1.398, allocations: 0.7149 MB / 0.9053 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03711/1.435, allocations: 18.7 MB / 0.9235 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009073/1.444, allocations: 4.609 MB / 0.928 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002337/1.447, allocations: 447.3 kB / 0.9285 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of SimCode: time 1.252e-06/1.447, allocations: 0 / 0.9285 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of Templates: time 0.3687/1.815, allocations: 145.5 MB / 1.071 GB, free: 99.49 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches