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.00105/0.00105, allocations: 107.2 kB / 16.41 MB, free: 6.5 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.0009693/0.0009694, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.286/1.286, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.1856/0.1856, 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.001445/0.001445, allocations: 65.45 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.0114/0.1153, allocations: 10.4 MB / 0.4976 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007788/0.1231, allocations: 3.881 MB / 0.5013 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.125, allocations: 59.81 kB / 0.5014 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004282/0.1293, allocations: 2.071 MB / 0.5034 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004524/0.1339, allocations: 1.743 MB / 0.5051 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.1357, allocations: 0.6901 MB / 0.5058 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005343/0.141, allocations: 3.822 MB / 0.5095 GB, free: 5.539 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003591/0.1447, allocations: 2.602 MB / 0.5121 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002273/0.1469, allocations: 1.312 MB / 0.5134 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002592/0.1496, allocations: 1.857 MB / 0.5152 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007955/0.1504, allocations: 268 kB / 0.5154 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002286/0.1527, allocations: 1.182 MB / 0.5166 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002027/0.1547, allocations: 1.683 MB / 0.5182 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002972/0.1577, allocations: 1.977 MB / 0.5202 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007338/0.1651, allocations: 6.408 MB / 0.5264 GB, free: 4.148 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1651, allocations: 0 / 0.5264 GB, free: 4.148 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1651, allocations: 0 / 0.5264 GB, free: 4.148 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001877/0.1653, allocations: 4 kB / 0.5264 GB, free: 4.145 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.2055/0.3708, allocations: 4.48 MB / 0.5308 GB, free: 36.78 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3708, allocations: 12.61 kB / 0.5308 GB, free: 36.78 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001088/0.3719, allocations: 0.6271 MB / 0.5314 GB, free: 36.71 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08688/0.4588, allocations: 7.055 MB / 0.5383 GB, free: 36.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006884/0.4657, allocations: 2.902 MB / 0.5411 GB, free: 35.95 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.4659, allocations: 196.3 kB / 0.5413 GB, free: 35.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008256/0.4668, allocations: 270 kB / 0.5416 GB, free: 35.93 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01412/0.4809, allocations: 8.518 MB / 0.5499 GB, free: 31.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001386/0.4811, allocations: 44.09 kB / 0.5499 GB, free: 31.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004838/0.4816, allocations: 122.2 kB / 0.5501 GB, free: 31.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002697/0.4843, allocations: 1.74 MB / 0.5518 GB, free: 30.72 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.4955, allocations: 7.156 MB / 0.5587 GB, free: 25.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03163/0.5271, allocations: 33.89 MB / 0.5918 GB, free: 6.984 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008431/0.5356, allocations: 3.42 MB / 0.5952 GB, free: 3.414 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002047/0.5377, allocations: 1.651 MB / 0.5968 GB, free: 1.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.549, allocations: 7.229 MB / 0.6039 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.5491, allocations: 55.5 kB / 0.6039 GB, free: 10.26 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.208e-06/0.5491, allocations: 0 / 0.6039 GB, free: 10.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06122/0.6103, allocations: 19.27 MB / 0.6227 GB, free: 6.852 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.6105, allocations: 205.2 kB / 0.6229 GB, free: 6.609 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004627/0.6151, allocations: 3.769 MB / 0.6266 GB, free: 2.852 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002373/0.6154, allocations: 57.69 kB / 0.6267 GB, free: 2.789 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001806/0.6172, allocations: 2.937 MB / 0.6295 GB, free: 15.82 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007141/0.6179, allocations: 0.752 MB / 0.6303 GB, free: 15.07 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/0.6193, allocations: 1.179 MB / 0.6314 GB, free: 13.88 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.108e-05/0.6194, allocations: 305.1 kB / 0.6317 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002849/0.6223, allocations: 2.088 MB / 0.6337 GB, free: 11.48 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00498/0.6273, allocations: 5.648 MB / 0.6393 GB, free: 4.055 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008864/0.6361, allocations: 8.407 MB / 0.6475 GB, free: 9.895 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.731e-05/0.6363, allocations: 36 kB / 0.6475 GB, free: 9.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01641/0.6527, allocations: 8.7 MB / 0.656 GB, free: 1.148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.723e-05/0.6528, allocations: 64.17 kB / 0.6561 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.6529, allocations: 128.1 kB / 0.6562 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004847/0.6578, allocations: 1.38 MB / 0.6575 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004271/0.6621, allocations: 1.298 MB / 0.6588 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.6756, allocations: 9.219 MB / 0.6678 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003942/0.6795, allocations: 295.6 kB / 0.6681 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005354/0.6801, allocations: 356 kB / 0.6684 GB, free: 4.281 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.002573/0.6827, allocations: 1.896 MB / 0.6703 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005546/0.6832, allocations: 349.7 kB / 0.6706 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007896/0.6911, allocations: 3.771 MB / 0.6743 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.848e-05/0.6912, allocations: 23.94 kB / 0.6743 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.6912, allocations: 8 kB / 0.6743 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.6912, allocations: 7.969 kB / 0.6743 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/0.7068, allocations: 8.156 MB / 0.6823 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.7069, allocations: 0 / 0.6823 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.7081, allocations: 251.6 kB / 0.6825 GB, free: 5.73 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004449/0.7125, allocations: 1.175 MB / 0.6837 GB, free: 4.551 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001502/0.7127, allocations: 32 kB / 0.6837 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/0.7246, allocations: 8.475 MB / 0.692 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7246, allocations: 3.938 kB / 0.692 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/0.7352, allocations: 6.285 MB / 0.6981 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/0.7368, allocations: 0.6235 MB / 0.6987 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004272/0.7372, allocations: 36 kB / 0.6988 GB, free: 4.895 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.7386, allocations: 79.91 kB / 0.6988 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000294/0.7389, allocations: 109.1 kB / 0.699 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.739, allocations: 51.98 kB / 0.699 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003115/0.7421, allocations: 2.352 MB / 0.7013 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7421, allocations: 0 / 0.7013 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004042/0.7462, allocations: 0.9647 MB / 0.7022 GB, free: 1.359 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.011/0.7572, allocations: 6.994 MB / 0.7091 GB, free: 10.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00786/0.7651, allocations: 5.208 MB / 0.7142 GB, free: 5.141 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.7651, allocations: 0 / 0.7142 GB, free: 5.141 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.7675, allocations: 1.746 MB / 0.7159 GB, free: 3.383 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/0.7699, allocations: 402.2 kB / 0.7162 GB, free: 2.992 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2662/1.036, allocations: 44.37 MB / 0.7596 GB, free: 184 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/1.039, allocations: 2.969 MB / 0.7625 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004153/1.044, allocations: 1.815 MB / 0.7642 GB, free: 183.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001915/1.046, allocations: 1.657 MB / 0.7659 GB, free: 182.4 MB / 0.5762 GB Notification: Performance of SimCode: time 8.41e-07/1.046, allocations: 1.062 kB / 0.7659 GB, free: 182.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08856/1.134, allocations: 67.2 MB / 0.8315 GB, free: 129.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.9/27.04, allocations: 8 kB / 0.8315 GB, free: 129.2 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 & 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