Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 118.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2132/0.2132, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3581, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Force): time 0.01756/0.3757, allocations: 15.52 MB / 0.5457 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01186/0.3876, allocations: 4.935 MB / 0.5505 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004404/0.3921, allocations: 103.8 kB / 0.5506 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009823/0.4019, allocations: 4.992 MB / 0.5555 GB, free: 8.16 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008755/0.4108, allocations: 2.544 MB / 0.558 GB, free: 5.605 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003323/0.4141, allocations: 1.108 MB / 0.559 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.4252, allocations: 6.891 MB / 0.5658 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008399/0.4336, allocations: 5.774 MB / 0.5714 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004234/0.4379, allocations: 2.395 MB / 0.5737 GB, free: 5.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004798/0.4427, allocations: 3.228 MB / 0.5769 GB, free: 2.098 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00176/0.4445, allocations: 0.5039 MB / 0.5774 GB, free: 1.594 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003427/0.4479, allocations: 1.393 MB / 0.5788 GB, free: 204 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003623/0.4516, allocations: 3.004 MB / 0.5817 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00587/0.4575, allocations: 3.402 MB / 0.585 GB, free: 9.766 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.4722, allocations: 10.55 MB / 0.5953 GB, free: 15.17 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4723, allocations: 4 kB / 0.5953 GB, free: 15.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4723, allocations: 0 / 0.5953 GB, free: 15.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003734/0.4727, allocations: 0 / 0.5953 GB, free: 15.16 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02225/0.4949, allocations: 7.78 MB / 0.6029 GB, free: 7.293 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.495, allocations: 12.03 kB / 0.6029 GB, free: 7.281 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00303/0.4981, allocations: 1.025 MB / 0.6039 GB, free: 6.246 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04012/0.5382, allocations: 6.226 MB / 0.61 GB, free: 8 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01234/0.5506, allocations: 4.685 MB / 0.6146 GB, free: 11.24 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00037/0.551, allocations: 357.3 kB / 0.6149 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001817/0.5528, allocations: 483.7 kB / 0.6154 GB, free: 10.42 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02794/0.5808, allocations: 14.55 MB / 0.6296 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002525/0.5811, allocations: 67.45 kB / 0.6297 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001291/0.5824, allocations: 227.8 kB / 0.6299 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004818/0.5872, allocations: 2.742 MB / 0.6326 GB, free: 7.832 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0242/0.6114, allocations: 12.24 MB / 0.6445 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07854/0.69, allocations: 57.67 MB / 0.7008 GB, free: 468 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/0.7086, allocations: 7.158 MB / 0.7078 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004596/0.7132, allocations: 3.773 MB / 0.7115 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2425/0.9558, allocations: 8.772 MB / 0.7201 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.9558, allocations: 61.84 kB / 0.7201 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=246): time 5.22e-06/0.9558, allocations: 3.656 kB / 0.7201 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=288): time 0.07131/1.027, allocations: 31.35 MB / 0.7507 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.646e-05/1.027, allocations: 235.6 kB / 0.751 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006826/1.034, allocations: 6.671 MB / 0.7575 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005771/1.035, allocations: 69.7 kB / 0.7575 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00204/1.037, allocations: 4.593 MB / 0.762 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001109/1.038, allocations: 1.144 MB / 0.7631 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002127/1.04, allocations: 1.726 MB / 0.7648 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.039e-05/1.04, allocations: 307.5 kB / 0.7651 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003864/1.044, allocations: 3.405 MB / 0.7684 GB, free: 128 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005906/1.05, allocations: 8.371 MB / 0.7766 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/1.061, allocations: 12.78 MB / 0.7891 GB, free: 102 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/1.061, allocations: 56 kB / 0.7892 GB, free: 102 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.01897/1.08, allocations: 13.07 MB / 0.8019 GB, free: 88.89 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.048e-05/1.08, allocations: 86.48 kB / 0.802 GB, free: 88.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001533/1.08, allocations: 179.9 kB / 0.8022 GB, free: 88.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003822/1.084, allocations: 1.758 MB / 0.8039 GB, free: 86.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005865/1.09, allocations: 1.965 MB / 0.8058 GB, free: 84.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/1.102, allocations: 12.74 MB / 0.8183 GB, free: 71.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006319/1.109, allocations: 491.5 kB / 0.8187 GB, free: 71.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.11, allocations: 0.5038 MB / 0.8192 GB, free: 70.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 796 * Number of states: 0 () * Number of discrete variables: 67 (force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.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 (1020): * Single equations (assignments): 1013 * 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.003681/1.113, allocations: 2.981 MB / 0.8221 GB, free: 67.91 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009267/1.114, allocations: 0.5975 MB / 0.8227 GB, free: 67.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008949/1.123, allocations: 6.483 MB / 0.829 GB, free: 60.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.17e-05/1.123, allocations: 28 kB / 0.8291 GB, free: 60.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.123, allocations: 12 kB / 0.8291 GB, free: 60.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-05/1.123, allocations: 15.89 kB / 0.8291 GB, free: 60.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02097/1.144, allocations: 14.24 MB / 0.843 GB, free: 46.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/1.144, allocations: 4.469 kB / 0.843 GB, free: 46.44 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.147, allocations: 487.3 kB / 0.8435 GB, free: 45.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003429/1.15, allocations: 1.519 MB / 0.845 GB, free: 44.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003125/1.15, allocations: 58.89 kB / 0.845 GB, free: 44.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/1.162, allocations: 12.06 MB / 0.8568 GB, free: 32.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.162, allocations: 11.77 kB / 0.8568 GB, free: 32.05 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/1.176, allocations: 10.61 MB / 0.8672 GB, free: 21.29 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/1.178, allocations: 0.6532 MB / 0.8678 GB, free: 20.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001426/1.179, allocations: 48 kB / 0.8678 GB, free: 20.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002819/1.182, allocations: 187.7 kB / 0.868 GB, free: 20.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004996/1.183, allocations: 173.6 kB / 0.8682 GB, free: 20.21 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001899/1.183, allocations: 79.98 kB / 0.8683 GB, free: 20.13 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00513/1.188, allocations: 4.282 MB / 0.8724 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/1.188, allocations: 0 / 0.8724 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006535/1.195, allocations: 1.531 MB / 0.8739 GB, free: 14.33 MB / 0.5606 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.01383/1.209, allocations: 11.28 MB / 0.885 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01181/1.22, allocations: 8.37 MB / 0.8931 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/1.22, allocations: 4 kB / 0.8931 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005302/1.226, allocations: 3.317 MB / 0.8964 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004307/1.23, allocations: 0.7585 MB / 0.8971 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3653/1.595, allocations: 75.87 MB / 0.9712 GB, free: 209.1 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00501/1.6, allocations: 4.536 MB / 0.9756 GB, free: 207.5 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005219/1.606, allocations: 2.788 MB / 0.9784 GB, free: 207.4 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00356/1.609, allocations: 2.948 MB / 0.9812 GB, free: 205 MB / 0.6387 GB Notification: Performance of SimCode: time 9.62e-07/1.609, allocations: 1.906 kB / 0.9812 GB, free: 205 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1496/1.759, allocations: 117 MB / 1.095 GB, free: 91.32 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.97/26.73, allocations: 4 kB / 1.095 GB, free: 91.32 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force_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_trunk_ModelicaTest_MultiBody_Forces_Force.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force_res.csv","/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_trunk_ModelicaTest.MultiBody.Forces.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches