Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_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.001183/0.001183, allocations: 107.4 kB / 16.41 MB, free: 6.508 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.001217/0.001217, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.4/1.4, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2069/0.2069, allocations: 43.53 MB / 314.1 MB, free: 452 kB / 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.001393/0.001393, allocations: 73.47 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 57.79 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01026/0.118, allocations: 10.4 MB / 0.4976 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006847/0.1249, allocations: 3.869 MB / 0.5013 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.126, allocations: 59.81 kB / 0.5014 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003371/0.1295, allocations: 2.079 MB / 0.5034 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003604/0.1331, allocations: 1.716 MB / 0.5051 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.1345, allocations: 0.6901 MB / 0.5058 GB, free: 9.398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004333/0.1388, allocations: 3.802 MB / 0.5095 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002656/0.1415, allocations: 2.605 MB / 0.512 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.1433, allocations: 1.312 MB / 0.5133 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.1455, allocations: 1.861 MB / 0.5151 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004371/0.1459, allocations: 264 kB / 0.5154 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.1477, allocations: 1.182 MB / 0.5165 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001374/0.1491, allocations: 1.683 MB / 0.5182 GB, free: 12.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.1509, allocations: 1.977 MB / 0.5201 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006226/0.1571, allocations: 6.388 MB / 0.5263 GB, free: 4.215 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1571, allocations: 0 / 0.5263 GB, free: 4.215 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1571, allocations: 0 / 0.5263 GB, free: 4.215 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001205/0.1573, allocations: 4 kB / 0.5263 GB, free: 4.211 MB / 414.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.2343/0.3915, allocations: 4.358 MB / 0.5306 GB, free: 36.83 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.3916, allocations: 12.45 kB / 0.5306 GB, free: 36.83 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00144/0.3931, allocations: 0.6261 MB / 0.5312 GB, free: 36.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09054/0.4836, allocations: 7.026 MB / 0.5381 GB, free: 36.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007084/0.4907, allocations: 2.893 MB / 0.5409 GB, free: 35.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.4909, allocations: 198.6 kB / 0.5411 GB, free: 35.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007566/0.4917, allocations: 272.3 kB / 0.5414 GB, free: 35.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01336/0.5051, allocations: 8.521 MB / 0.5497 GB, free: 31.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.5052, allocations: 40.41 kB / 0.5497 GB, free: 31.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003015/0.5055, allocations: 122.3 kB / 0.5498 GB, free: 31.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002476/0.508, allocations: 1.736 MB / 0.5515 GB, free: 30.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.5192, allocations: 7.162 MB / 0.5585 GB, free: 25.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03243/0.5517, allocations: 33.82 MB / 0.5916 GB, free: 6.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008515/0.5602, allocations: 3.417 MB / 0.5949 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002222/0.5625, allocations: 1.661 MB / 0.5965 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01084/0.5733, allocations: 7.221 MB / 0.6036 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.5734, allocations: 47.56 kB / 0.6036 GB, free: 10.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.188e-06/0.5734, allocations: 7.938 kB / 0.6036 GB, free: 10.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06082/0.6343, allocations: 19.06 MB / 0.6222 GB, free: 6.949 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.6344, allocations: 205.2 kB / 0.6224 GB, free: 6.707 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004968/0.6394, allocations: 3.764 MB / 0.6261 GB, free: 2.953 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/0.6397, allocations: 49.7 kB / 0.6262 GB, free: 2.898 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001671/0.6414, allocations: 2.83 MB / 0.6289 GB, free: 28 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007397/0.6422, allocations: 0.7097 MB / 0.6296 GB, free: 15.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.6435, allocations: 1.17 MB / 0.6308 GB, free: 14.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.6437, allocations: 301.1 kB / 0.631 GB, free: 13.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/0.6465, allocations: 2.092 MB / 0.6331 GB, free: 11.73 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004968/0.6515, allocations: 5.652 MB / 0.6386 GB, free: 4.301 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009346/0.6609, allocations: 8.402 MB / 0.6468 GB, free: 10.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/0.661, allocations: 36 kB / 0.6468 GB, free: 10.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01816/0.6792, allocations: 8.69 MB / 0.6553 GB, free: 1.406 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001542/0.6794, allocations: 60.19 kB / 0.6554 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/0.6796, allocations: 128 kB / 0.6555 GB, free: 1.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004987/0.6846, allocations: 1.387 MB / 0.6569 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/0.6889, allocations: 1.294 MB / 0.6581 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/0.7026, allocations: 9.209 MB / 0.6671 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004286/0.7069, allocations: 295.6 kB / 0.6674 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/0.708, allocations: 360 kB / 0.6677 GB, free: 4.551 MB / 0.4981 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.003729/0.7117, allocations: 1.896 MB / 0.6696 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000771/0.7125, allocations: 339.6 kB / 0.6699 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008367/0.7209, allocations: 3.756 MB / 0.6736 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.613e-05/0.721, allocations: 23.94 kB / 0.6736 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-05/0.721, allocations: 8 kB / 0.6736 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.16e-05/0.721, allocations: 11.97 kB / 0.6736 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01816/0.7392, allocations: 8.154 MB / 0.6816 GB, free: 6.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/0.7392, allocations: 0 / 0.6816 GB, free: 6.273 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.7405, allocations: 251.6 kB / 0.6818 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004472/0.745, allocations: 1.183 MB / 0.683 GB, free: 4.84 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001982/0.7452, allocations: 32 kB / 0.683 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.012/0.7572, allocations: 8.466 MB / 0.6913 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.7573, allocations: 4.062 kB / 0.6913 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/0.769, allocations: 6.263 MB / 0.6974 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002333/0.7714, allocations: 0.6138 MB / 0.698 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009943/0.7724, allocations: 28 kB / 0.698 GB, free: 5.234 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002022/0.7745, allocations: 75.91 kB / 0.6981 GB, free: 5.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004676/0.7749, allocations: 121.1 kB / 0.6982 GB, free: 5.043 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/0.7751, allocations: 59.98 kB / 0.6983 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004324/0.7795, allocations: 2.34 MB / 0.7006 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7795, allocations: 0 / 0.7006 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004944/0.7844, allocations: 0.9699 MB / 0.7015 GB, free: 1.695 MB / 0.5294 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.01144/0.7959, allocations: 6.96 MB / 0.7083 GB, free: 10.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007935/0.8039, allocations: 5.206 MB / 0.7134 GB, free: 5.512 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.8039, allocations: 4 kB / 0.7134 GB, free: 5.508 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002376/0.8063, allocations: 1.745 MB / 0.7151 GB, free: 3.75 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/0.8094, allocations: 410.8 kB / 0.7155 GB, free: 3.359 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2854/1.095, allocations: 44.21 MB / 0.7587 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003488/1.098, allocations: 2.966 MB / 0.7616 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004286/1.103, allocations: 1.816 MB / 0.7633 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00238/1.105, allocations: 1.657 MB / 0.765 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/1.105, allocations: 0 / 0.765 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1014/1.206, allocations: 68.29 MB / 0.8316 GB, free: 128 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.43/27.63, allocations: 3.938 kB / 0.8317 GB, free: 128 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches