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.001364/0.001364, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001498/0.001498, allocations: 192 kB / 18.55 MB, free: 4.566 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.397/1.397, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2093/0.2093, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001242, allocations: 67.83 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1138, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01064/0.1245, allocations: 10.38 MB / 479.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007065/0.1316, allocations: 3.86 MB / 483.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.1329, allocations: 59.81 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00377/0.1367, allocations: 2.079 MB / 485.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004304/0.1411, allocations: 1.7 MB / 487.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.1428, allocations: 0.6901 MB / 488.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005543/0.1484, allocations: 3.985 MB / 492.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004431/0.1528, allocations: 2.594 MB / 494.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002852/0.1557, allocations: 1.316 MB / 496 MB, free: 3.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.159, allocations: 1.85 MB / 497.9 MB, free: 1.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001111/0.1602, allocations: 264 kB / 498.1 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.1633, allocations: 1.186 MB / 499.3 MB, free: 156 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002367/0.1657, allocations: 1.656 MB / 0.4892 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003382/0.1691, allocations: 1.98 MB / 0.4912 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008693/0.1778, allocations: 6.153 MB / 0.4972 GB, free: 6.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.1778, allocations: 0 / 0.4972 GB, free: 6.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1778, allocations: 0 / 0.4972 GB, free: 6.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002662/0.1781, allocations: 0 / 0.4972 GB, free: 6.328 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.01136/0.1895, allocations: 4.346 MB / 0.5014 GB, free: 1.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.1895, allocations: 8.031 kB / 0.5014 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000969/0.1905, allocations: 0.621 MB / 0.502 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2922/0.4827, allocations: 7.03 MB / 0.5089 GB, free: 46.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007557/0.4903, allocations: 2.686 MB / 0.5115 GB, free: 45.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003165/0.4907, allocations: 195.5 kB / 0.5117 GB, free: 45.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001464/0.4921, allocations: 270.8 kB / 0.512 GB, free: 44.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0148/0.507, allocations: 8.519 MB / 0.5203 GB, free: 40.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.5071, allocations: 39.38 kB / 0.5203 GB, free: 40.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003205/0.5074, allocations: 126.4 kB / 0.5204 GB, free: 40.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002553/0.51, allocations: 1.735 MB / 0.5221 GB, free: 39.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/0.5211, allocations: 7.154 MB / 0.5291 GB, free: 33.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03309/0.5543, allocations: 33.95 MB / 0.5623 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009267/0.5636, allocations: 3.405 MB / 0.5656 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002298/0.5659, allocations: 1.651 MB / 0.5672 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01099/0.5769, allocations: 7.227 MB / 0.5743 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.577, allocations: 55.5 kB / 0.5743 GB, free: 1.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=151): time 4.589e-06/0.577, allocations: 1.406 kB / 0.5743 GB, free: 1.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=188): time 0.06256/0.6396, allocations: 19.01 MB / 0.5929 GB, free: 14.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.97e-05/0.6397, allocations: 198.1 kB / 0.5931 GB, free: 14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004657/0.6444, allocations: 3.752 MB / 0.5967 GB, free: 10.26 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002306/0.6446, allocations: 57.7 kB / 0.5968 GB, free: 10.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.6463, allocations: 2.819 MB / 0.5996 GB, free: 7.336 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007442/0.6471, allocations: 0.7173 MB / 0.6003 GB, free: 6.609 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001357/0.6484, allocations: 1.166 MB / 0.6014 GB, free: 5.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.6485, allocations: 305.1 kB / 0.6017 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.6514, allocations: 2.088 MB / 0.6037 GB, free: 3.035 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004866/0.6563, allocations: 5.648 MB / 0.6092 GB, free: 11.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/0.6667, allocations: 8.403 MB / 0.6174 GB, free: 1.457 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001163/0.6669, allocations: 36 kB / 0.6175 GB, free: 1.422 MB / 446.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01655/0.6834, allocations: 8.692 MB / 0.626 GB, free: 8.715 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.6836, allocations: 60 kB / 0.626 GB, free: 8.656 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/0.6838, allocations: 124 kB / 0.6261 GB, free: 8.535 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005002/0.6888, allocations: 1.395 MB / 0.6275 GB, free: 7.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004234/0.693, allocations: 1.291 MB / 0.6288 GB, free: 5.848 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/0.7062, allocations: 9.212 MB / 0.6378 GB, free: 12.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003941/0.7102, allocations: 299.5 kB / 0.638 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006902/0.7109, allocations: 364 kB / 0.6384 GB, free: 11.85 MB / 478.1 MB 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.00266/0.7136, allocations: 1.881 MB / 0.6402 GB, free: 9.953 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006184/0.7142, allocations: 331.7 kB / 0.6405 GB, free: 9.625 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008102/0.7223, allocations: 3.77 MB / 0.6442 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.445e-05/0.7224, allocations: 23.94 kB / 0.6442 GB, free: 5.816 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.7224, allocations: 12 kB / 0.6443 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/0.7224, allocations: 7.969 kB / 0.6443 GB, free: 5.797 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/0.7377, allocations: 8.172 MB / 0.6522 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.7378, allocations: 0 / 0.6522 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.739, allocations: 247.6 kB / 0.6525 GB, free: 13.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/0.7434, allocations: 1.184 MB / 0.6536 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001976/0.7436, allocations: 31.98 kB / 0.6537 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/0.7555, allocations: 8.482 MB / 0.662 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.7556, allocations: 0 / 0.662 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01146/0.7671, allocations: 6.268 MB / 0.6681 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009503/0.7681, allocations: 372.6 kB / 0.6684 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004858/0.7686, allocations: 28 kB / 0.6685 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.7699, allocations: 79.91 kB / 0.6685 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.7703, allocations: 109.1 kB / 0.6686 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/0.7704, allocations: 55.98 kB / 0.6687 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003147/0.7735, allocations: 2.336 MB / 0.671 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7736, allocations: 0 / 0.671 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004329/0.7779, allocations: 0.97 MB / 0.6719 GB, free: 9.23 MB / 0.4981 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.01098/0.7889, allocations: 6.967 MB / 0.6787 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009405/0.7983, allocations: 6.113 MB / 0.6847 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.7984, allocations: 4.312 kB / 0.6847 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.8007, allocations: 1.749 MB / 0.6864 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.8029, allocations: 403.8 kB / 0.6868 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2654/1.068, allocations: 49.21 MB / 0.7348 GB, free: 144.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003141/1.072, allocations: 2.965 MB / 0.7377 GB, free: 142.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004034/1.076, allocations: 1.807 MB / 0.7395 GB, free: 142.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001951/1.078, allocations: 1.657 MB / 0.7411 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.042e-06/1.078, allocations: 2.938 kB / 0.7411 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1009/1.178, allocations: 70.48 MB / 0.81 GB, free: 71.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/12.56, allocations: 12 kB / 0.81 GB, free: 71.13 MB / 0.5137 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/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