Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.0007662/0.0007669, allocations: 95.66 kB / 17.35 MB, free: 6.375 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.0007881/0.0007881, allocations: 173.5 kB / 18.25 MB, free: 5.523 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.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2132/0.2132, allocations: 44.24 MB / 337.7 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003111, allocations: 8 kB / 410.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 61.92 MB / 472.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.0325/0.1385, allocations: 33.83 MB / 0.4943 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.1555, allocations: 7.89 MB / 0.502 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004859/0.1604, allocations: 147.6 kB / 0.5022 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.1616, allocations: 378.1 kB / 0.5025 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003812/0.1655, allocations: 1.596 MB / 0.5041 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.1669, allocations: 0.6357 MB / 0.5047 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2196/0.3866, allocations: 5.683 MB / 0.5103 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005148/0.3918, allocations: 3.309 MB / 0.5135 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.394, allocations: 1.027 MB / 0.5145 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002684/0.3967, allocations: 1.799 MB / 0.5163 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004449/0.3972, allocations: 123.3 kB / 0.5164 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002017/0.3992, allocations: 1.125 MB / 0.5175 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001412/0.4006, allocations: 1.516 MB / 0.5189 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.4021, allocations: 1.807 MB / 0.5207 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005295/0.4074, allocations: 5.953 MB / 0.5265 GB, free: 7.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4074, allocations: 2.938 kB / 0.5265 GB, free: 7.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4074, allocations: 0 / 0.5265 GB, free: 7.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.74e-05/0.4075, allocations: 0 / 0.5265 GB, free: 7.148 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.007564/0.4151, allocations: 3.596 MB / 0.53 GB, free: 4.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.4152, allocations: 10.12 kB / 0.5301 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008163/0.416, allocations: 0.6265 MB / 0.5307 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08834/0.5043, allocations: 7.221 MB / 0.5377 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005824/0.5102, allocations: 2.681 MB / 0.5403 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-05/0.5103, allocations: 196.3 kB / 0.5405 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005015/0.5109, allocations: 273.8 kB / 0.5408 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/0.5229, allocations: 8.534 MB / 0.5491 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.322e-05/0.523, allocations: 43.3 kB / 0.5492 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003004/0.5233, allocations: 128.9 kB / 0.5493 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002649/0.526, allocations: 1.736 MB / 0.551 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/0.5384, allocations: 7.178 MB / 0.558 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03932/0.5777, allocations: 33.98 MB / 0.5912 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008388/0.5862, allocations: 3.457 MB / 0.5945 GB, free: 8.293 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002129/0.5883, allocations: 1.647 MB / 0.5962 GB, free: 6.637 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0109/0.5992, allocations: 7.23 MB / 0.6032 GB, free: 15.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.441e-05/0.5993, allocations: 51.56 kB / 0.6033 GB, free: 15.13 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.25e-06/0.5993, allocations: 0 / 0.6033 GB, free: 15.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06152/0.6609, allocations: 19.37 MB / 0.6222 GB, free: 11.67 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/0.661, allocations: 201.2 kB / 0.6224 GB, free: 11.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005303/0.6663, allocations: 3.744 MB / 0.626 GB, free: 7.695 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.6665, allocations: 57.45 kB / 0.6261 GB, free: 7.637 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001882/0.6684, allocations: 2.825 MB / 0.6288 GB, free: 4.816 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006812/0.6691, allocations: 0.7113 MB / 0.6295 GB, free: 4.109 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006342/0.6697, allocations: 0.4943 MB / 0.63 GB, free: 3.609 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.6698, allocations: 303.8 kB / 0.6303 GB, free: 3.312 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002985/0.6728, allocations: 2.096 MB / 0.6324 GB, free: 1.211 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005024/0.6779, allocations: 5.65 MB / 0.6379 GB, free: 9.848 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008639/0.6865, allocations: 8.408 MB / 0.6461 GB, free: 192 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-05/0.6866, allocations: 36 kB / 0.6461 GB, free: 156 kB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01495/0.7016, allocations: 8.716 MB / 0.6546 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.276e-05/0.7016, allocations: 60.97 kB / 0.6547 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/0.7018, allocations: 124 kB / 0.6548 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005035/0.7068, allocations: 1.422 MB / 0.6562 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00351/0.7103, allocations: 1.291 MB / 0.6575 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.7222, allocations: 8.633 MB / 0.6659 GB, free: 12.02 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003675/0.7259, allocations: 303.5 kB / 0.6662 GB, free: 11.72 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004885/0.7264, allocations: 356 kB / 0.6665 GB, free: 11.37 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (695): * Single equations (assignments): 691 * 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 {(1,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002886/0.7293, allocations: 1.9 MB / 0.6684 GB, free: 9.461 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/0.7298, allocations: 331.7 kB / 0.6687 GB, free: 9.133 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008295/0.7381, allocations: 3.794 MB / 0.6724 GB, free: 5.324 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-05/0.7381, allocations: 34.14 kB / 0.6724 GB, free: 5.293 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.7382, allocations: 8 kB / 0.6724 GB, free: 5.285 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.7382, allocations: 7.969 kB / 0.6724 GB, free: 5.277 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/0.7528, allocations: 8.211 MB / 0.6805 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.7528, allocations: 0 / 0.6805 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.7539, allocations: 247.6 kB / 0.6807 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004614/0.7586, allocations: 1.209 MB / 0.6819 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.7587, allocations: 31.98 kB / 0.6819 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.7699, allocations: 7.908 MB / 0.6896 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.7699, allocations: 4.031 kB / 0.6896 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.7806, allocations: 6.297 MB / 0.6958 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008806/0.7815, allocations: 388.6 kB / 0.6961 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003704/0.7819, allocations: 28 kB / 0.6962 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.7832, allocations: 83.5 kB / 0.6963 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/0.7834, allocations: 109.1 kB / 0.6964 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.7836, allocations: 60.05 kB / 0.6964 GB, free: 12.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003168/0.7867, allocations: 2.328 MB / 0.6987 GB, free: 10.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.744e-06/0.7868, allocations: 0 / 0.6987 GB, free: 10.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003771/0.7905, allocations: 0.9652 MB / 0.6996 GB, free: 9.242 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * 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 {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01104/0.8016, allocations: 7.02 MB / 0.7065 GB, free: 2.195 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2015/1.003, allocations: 5.188 MB / 0.7116 GB, free: 208 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/1.003, allocations: 1.062 kB / 0.7116 GB, free: 208 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002281/1.005, allocations: 1.742 MB / 0.7133 GB, free: 207.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/1.008, allocations: 391.8 kB / 0.7136 GB, free: 207.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06494/1.073, allocations: 50.99 MB / 0.7634 GB, free: 167.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00372/1.077, allocations: 2.962 MB / 0.7663 GB, free: 164.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003992/1.081, allocations: 1.823 MB / 0.7681 GB, free: 162.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/1.082, allocations: 1.651 MB / 0.7697 GB, free: 160.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.002e-06/1.082, allocations: 0 / 0.7697 GB, free: 160.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08255/1.165, allocations: 68.25 MB / 0.8364 GB, free: 93.01 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/1.165, allocations: 226.8 kB / 0.8366 GB, free: 92.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.48/4.645, allocations: 0 / 0.8366 GB, free: 92.75 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches