Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009941/0.0009941, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007907/0.0007907, allocations: 97.06 kB / 295.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2871/0.2871, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003406, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3016, allocations: 62.96 MB / 0.516 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02031/0.3219, allocations: 31.52 MB / 0.5467 GB, free: 14.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.3365, allocations: 7.5 MB / 0.5541 GB, free: 9.863 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005346/0.3419, allocations: 151.8 kB / 0.5542 GB, free: 9.836 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004393/0.3463, allocations: 1.588 MB / 0.5558 GB, free: 9.27 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01291/0.3592, allocations: 4.912 MB / 0.5606 GB, free: 7.227 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002787/0.362, allocations: 0.6255 MB / 0.5612 GB, free: 6.992 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03852/0.4006, allocations: 32.11 MB / 0.5925 GB, free: 10.92 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005848/0.4065, allocations: 3.21 MB / 0.5957 GB, free: 7.637 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.4093, allocations: 1.132 MB / 0.5968 GB, free: 6.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00304/0.4124, allocations: 1.788 MB / 0.5985 GB, free: 4.707 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008581/0.4132, allocations: 124 kB / 0.5986 GB, free: 4.586 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002882/0.4161, allocations: 1.092 MB / 0.5997 GB, free: 3.492 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002192/0.4184, allocations: 1.484 MB / 0.6011 GB, free: 2.004 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003108/0.4215, allocations: 1.703 MB / 0.6028 GB, free: 292 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00642/0.4279, allocations: 4.848 MB / 0.6075 GB, free: 11.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.428, allocations: 0 / 0.6075 GB, free: 11.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.428, allocations: 0 / 0.6075 GB, free: 11.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002458/0.4282, allocations: 0 / 0.6075 GB, free: 11.43 MB / 426.7 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.008949/0.4372, allocations: 3.606 MB / 0.6111 GB, free: 7.754 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.4373, allocations: 8.031 kB / 0.6111 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001659/0.4389, allocations: 0.6288 MB / 0.6117 GB, free: 7.105 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08133/0.5203, allocations: 7.217 MB / 0.6187 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00622/0.5265, allocations: 2.582 MB / 0.6213 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.5268, allocations: 205 kB / 0.6214 GB, free: 13.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.5279, allocations: 267.8 kB / 0.6217 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.5438, allocations: 8.513 MB / 0.63 GB, free: 3.621 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001637/0.544, allocations: 43.59 kB / 0.6301 GB, free: 3.578 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007462/0.5447, allocations: 127.9 kB / 0.6302 GB, free: 3.453 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002959/0.5477, allocations: 1.731 MB / 0.6319 GB, free: 1.723 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.5616, allocations: 7.143 MB / 0.6388 GB, free: 10.57 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03813/0.5997, allocations: 33.98 MB / 0.672 GB, free: 7.504 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008526/0.6083, allocations: 3.467 MB / 0.6754 GB, free: 3.891 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002117/0.6105, allocations: 1.646 MB / 0.677 GB, free: 2.238 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.225/0.8355, allocations: 7.216 MB / 0.6841 GB, free: 132.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.8356, allocations: 49.16 kB / 0.6841 GB, free: 132.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 4.248e-06/0.8356, allocations: 0 / 0.6841 GB, free: 132.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.05814/0.8937, allocations: 19.34 MB / 0.703 GB, free: 126.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.8938, allocations: 205.7 kB / 0.7032 GB, free: 126.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005282/0.8991, allocations: 3.723 MB / 0.7068 GB, free: 124.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003015/0.8994, allocations: 60.02 kB / 0.7069 GB, free: 124.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001534/0.901, allocations: 2.817 MB / 0.7096 GB, free: 122.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007618/0.9018, allocations: 0.7158 MB / 0.7103 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/0.902, allocations: 116.5 kB / 0.7105 GB, free: 122 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003197/0.9023, allocations: 0.551 MB / 0.711 GB, free: 121.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003692/0.906, allocations: 2.076 MB / 0.713 GB, free: 120.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005579/0.9116, allocations: 5.631 MB / 0.7185 GB, free: 115.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007147/0.9188, allocations: 8.378 MB / 0.7267 GB, free: 108.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.767e-05/0.9189, allocations: 34.62 kB / 0.7267 GB, free: 108.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01543/0.9344, allocations: 8.666 MB / 0.7352 GB, free: 101.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.9346, allocations: 63.94 kB / 0.7353 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/0.9347, allocations: 130.2 kB / 0.7354 GB, free: 101.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004899/0.9397, allocations: 1.43 MB / 0.7368 GB, free: 100 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003831/0.9435, allocations: 1.294 MB / 0.738 GB, free: 98.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/0.9543, allocations: 8.6 MB / 0.7464 GB, free: 90.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/0.9588, allocations: 303.6 kB / 0.7467 GB, free: 89.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008541/0.9597, allocations: 360 kB / 0.7471 GB, free: 89.37 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003246/0.9629, allocations: 1.89 MB / 0.7489 GB, free: 87.47 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008034/0.9637, allocations: 335.6 kB / 0.7492 GB, free: 87.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008052/0.9718, allocations: 3.79 MB / 0.7529 GB, free: 83.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-05/0.9719, allocations: 20 kB / 0.753 GB, free: 83.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.941e-05/0.9719, allocations: 11.94 kB / 0.753 GB, free: 83.31 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.218e-05/0.9719, allocations: 7.969 kB / 0.753 GB, free: 83.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/0.9881, allocations: 8.206 MB / 0.761 GB, free: 75.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/0.9882, allocations: 0 / 0.761 GB, free: 75.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.9894, allocations: 251.6 kB / 0.7612 GB, free: 74.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004381/0.9938, allocations: 1.206 MB / 0.7624 GB, free: 73.62 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/0.994, allocations: 31.98 kB / 0.7624 GB, free: 73.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009625/1.004, allocations: 7.901 MB / 0.7702 GB, free: 65.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.004, allocations: 0 / 0.7702 GB, free: 65.55 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/1.015, allocations: 6.279 MB / 0.7763 GB, free: 59.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/1.016, allocations: 388.5 kB / 0.7767 GB, free: 58.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/1.017, allocations: 33.02 kB / 0.7767 GB, free: 58.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/1.019, allocations: 87.97 kB / 0.7768 GB, free: 58.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000578/1.02, allocations: 113.1 kB / 0.7769 GB, free: 58.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/1.02, allocations: 53.16 kB / 0.7769 GB, free: 58.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004699/1.025, allocations: 2.317 MB / 0.7792 GB, free: 56.27 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.025, allocations: 0 / 0.7792 GB, free: 56.27 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00542/1.03, allocations: 0.963 MB / 0.7801 GB, free: 55.31 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01081/1.041, allocations: 6.994 MB / 0.787 GB, free: 48.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007131/1.048, allocations: 5.178 MB / 0.792 GB, free: 43.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/1.048, allocations: 3.938 kB / 0.792 GB, free: 43.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002045/1.051, allocations: 1.732 MB / 0.7937 GB, free: 41.38 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/1.053, allocations: 390.9 kB / 0.7941 GB, free: 41 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05551/1.109, allocations: 33.1 MB / 0.8264 GB, free: 4.418 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003554/1.112, allocations: 2.973 MB / 0.8293 GB, free: 1.414 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/1.115, allocations: 1.704 MB / 0.831 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/1.115, allocations: 4 kB / 0.831 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.169/8.283, allocations: 82.96 MB / 0.912 GB, free: 155.8 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches