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.001324/0.001324, allocations: 100.5 kB / 16.26 MB, free: 5.93 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.001492/0.001492, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.507/1.507, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.222/0.222, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 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.001742/0.001742, allocations: 70.02 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.09992, allocations: 57.79 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01036/0.1103, allocations: 10.39 MB / 451 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007597/0.118, allocations: 3.877 MB / 454.9 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001759/0.1198, allocations: 59.81 kB / 454.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004158/0.124, allocations: 2.067 MB / 457 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004362/0.1284, allocations: 1.704 MB / 458.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001717/0.1301, allocations: 0.694 MB / 459.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005023/0.1352, allocations: 3.806 MB / 463.2 MB, free: 140 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003562/0.1388, allocations: 2.617 MB / 465.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002427/0.1412, allocations: 1.316 MB / 467.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002786/0.144, allocations: 1.857 MB / 469 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00108/0.1451, allocations: 264 kB / 469.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00315/0.1483, allocations: 1.182 MB / 470.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002345/0.1507, allocations: 1.656 MB / 472.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003741/0.1544, allocations: 1.973 MB / 474.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008459/0.1629, allocations: 6.161 MB / 480.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.163, allocations: 4 kB / 480.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.163, allocations: 0 / 480.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002231/0.1632, allocations: 0 / 480.2 MB, free: 15.01 MB / 366.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.01221/0.1754, allocations: 4.362 MB / 484.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1755, allocations: 11.89 kB / 484.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001337/0.1768, allocations: 0.621 MB / 485.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09013/0.267, allocations: 7.037 MB / 492.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005976/0.273, allocations: 2.843 MB / 495.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.2732, allocations: 197.2 kB / 495.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000908/0.2741, allocations: 283.5 kB / 495.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01394/0.288, allocations: 8.513 MB / 0.4923 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001509/0.2882, allocations: 35.66 kB / 0.4923 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007572/0.289, allocations: 127.9 kB / 0.4924 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002759/0.2918, allocations: 1.743 MB / 0.4941 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.3046, allocations: 7.147 MB / 0.5011 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2176/0.5222, allocations: 33.95 MB / 0.5343 GB, free: 66.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008379/0.5307, allocations: 3.41 MB / 0.5376 GB, free: 65.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002235/0.5329, allocations: 1.661 MB / 0.5392 GB, free: 65.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009933/0.5429, allocations: 7.224 MB / 0.5463 GB, free: 63.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.543, allocations: 52.88 kB / 0.5463 GB, free: 63.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 4.999e-06/0.543, allocations: 0 / 0.5463 GB, free: 63.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=188): time 0.05763/0.6006, allocations: 19.08 MB / 0.565 GB, free: 54.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.6007, allocations: 200.7 kB / 0.5652 GB, free: 54.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004014/0.6047, allocations: 3.759 MB / 0.5688 GB, free: 50.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002372/0.605, allocations: 57.7 kB / 0.5689 GB, free: 50.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/0.606, allocations: 2.832 MB / 0.5716 GB, free: 47.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004856/0.6065, allocations: 0.7145 MB / 0.5723 GB, free: 46.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/0.6076, allocations: 1.163 MB / 0.5735 GB, free: 45.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.6076, allocations: 301.1 kB / 0.5738 GB, free: 45.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.6099, allocations: 2.092 MB / 0.5758 GB, free: 43.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003468/0.6134, allocations: 5.647 MB / 0.5813 GB, free: 35.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007518/0.621, allocations: 8.413 MB / 0.5895 GB, free: 25.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/0.6212, allocations: 39.94 kB / 0.5896 GB, free: 25.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01643/0.6376, allocations: 8.681 MB / 0.5981 GB, free: 17.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/0.6377, allocations: 63.98 kB / 0.5981 GB, free: 17.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/0.6379, allocations: 127.5 kB / 0.5982 GB, free: 16.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004742/0.6426, allocations: 1.391 MB / 0.5996 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003785/0.6464, allocations: 1.294 MB / 0.6009 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.6573, allocations: 9.199 MB / 0.6098 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004362/0.6617, allocations: 299.5 kB / 0.6101 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006172/0.6623, allocations: 356.2 kB / 0.6105 GB, free: 4.293 MB / 414.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.002321/0.6646, allocations: 1.9 MB / 0.6123 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.6652, allocations: 331.7 kB / 0.6126 GB, free: 2.055 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/0.6768, allocations: 3.767 MB / 0.6163 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.332e-05/0.677, allocations: 23.19 kB / 0.6163 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/0.677, allocations: 12 kB / 0.6164 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.073e-05/0.6771, allocations: 7.969 kB / 0.6164 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02641/0.7035, allocations: 8.183 MB / 0.6244 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-05/0.7035, allocations: 480 / 0.6244 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.7049, allocations: 251.6 kB / 0.6246 GB, free: 5.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004639/0.7096, allocations: 1.187 MB / 0.6258 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003257/0.71, allocations: 31.94 kB / 0.6258 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/0.7224, allocations: 8.477 MB / 0.6341 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.7225, allocations: 10.88 kB / 0.6341 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/0.7346, allocations: 6.258 MB / 0.6402 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/0.7362, allocations: 0.6059 MB / 0.6408 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008625/0.7371, allocations: 31.94 kB / 0.6408 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001753/0.7389, allocations: 83.73 kB / 0.6409 GB, free: 4.926 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003778/0.7393, allocations: 113.1 kB / 0.641 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/0.7394, allocations: 51.98 kB / 0.641 GB, free: 4.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004876/0.7443, allocations: 2.348 MB / 0.6433 GB, free: 2.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.7444, allocations: 0 / 0.6433 GB, free: 2.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005969/0.7503, allocations: 0.9636 MB / 0.6443 GB, free: 1.469 MB / 446.1 MB 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.01238/0.7627, allocations: 6.981 MB / 0.6511 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009848/0.7726, allocations: 6.116 MB / 0.6571 GB, free: 4.379 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.7726, allocations: 0 / 0.6571 GB, free: 4.379 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.7752, allocations: 1.745 MB / 0.6588 GB, free: 2.625 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.778, allocations: 403.7 kB / 0.6592 GB, free: 2.234 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0768/0.8548, allocations: 49.36 MB / 0.7074 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004009/0.8589, allocations: 2.974 MB / 0.7103 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004363/0.8633, allocations: 1.82 MB / 0.712 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/0.8655, allocations: 1.655 MB / 0.7137 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of SimCode: time 8.62e-07/0.8655, allocations: 0 / 0.7137 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3027/1.168, allocations: 70.62 MB / 0.7826 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/13.08, allocations: 0 / 0.7826 GB, free: 169.7 MB / 0.5294 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_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.csv","/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