Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008555/0.0008554, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007303/0.0007304, allocations: 94.3 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3013/0.3013, allocations: 43.56 MB / 363.1 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.0003641, allocations: 16 kB / 432.1 MB, free: 5.715 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09624/0.09663, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2109/0.3076, allocations: 31.54 MB / 0.5102 GB, free: 28.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.3252, allocations: 7.465 MB / 0.5175 GB, free: 22.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006704/0.332, allocations: 153.7 kB / 0.5177 GB, free: 22.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.3371, allocations: 1.586 MB / 0.5192 GB, free: 22.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01346/0.3506, allocations: 4.921 MB / 0.524 GB, free: 20.34 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002791/0.3534, allocations: 0.6261 MB / 0.5246 GB, free: 20.11 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02098/0.3744, allocations: 18.45 MB / 0.5426 GB, free: 15.44 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006083/0.3805, allocations: 3.221 MB / 0.5458 GB, free: 14.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003028/0.3836, allocations: 1.129 MB / 0.5469 GB, free: 13.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003419/0.387, allocations: 1.793 MB / 0.5486 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001044/0.3881, allocations: 124.4 kB / 0.5488 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002845/0.391, allocations: 1.102 MB / 0.5498 GB, free: 12.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00211/0.3931, allocations: 1.494 MB / 0.5513 GB, free: 11.63 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002817/0.396, allocations: 1.707 MB / 0.553 GB, free: 10.38 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005808/0.4018, allocations: 4.861 MB / 0.5577 GB, free: 5.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4018, allocations: 0 / 0.5577 GB, free: 5.934 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4018, allocations: 4 kB / 0.5577 GB, free: 5.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002161/0.4021, allocations: 0 / 0.5577 GB, free: 5.93 MB / 378.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.00833/0.4104, allocations: 3.61 MB / 0.5612 GB, free: 2.258 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.4105, allocations: 12.03 kB / 0.5612 GB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001263/0.4117, allocations: 0.621 MB / 0.5618 GB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08187/0.4936, allocations: 7.217 MB / 0.5689 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006183/0.4998, allocations: 2.843 MB / 0.5717 GB, free: 7.477 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.5, allocations: 197.3 kB / 0.5719 GB, free: 7.281 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005917/0.5006, allocations: 275.6 kB / 0.5721 GB, free: 7.012 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.5142, allocations: 8.521 MB / 0.5804 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.5144, allocations: 39.64 kB / 0.5805 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003101/0.5147, allocations: 127.9 kB / 0.5806 GB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002857/0.5175, allocations: 1.739 MB / 0.5823 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01304/0.5306, allocations: 7.138 MB / 0.5893 GB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04247/0.5731, allocations: 33.99 MB / 0.6225 GB, free: 1.766 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008633/0.5818, allocations: 3.457 MB / 0.6258 GB, free: 14.16 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00247/0.5843, allocations: 1.655 MB / 0.6275 GB, free: 12.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.5962, allocations: 7.213 MB / 0.6345 GB, free: 5.012 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.414e-05/0.5963, allocations: 47.56 kB / 0.6346 GB, free: 4.957 MB / 458.7 MB Notification: Performance of pre-optimization done (n=151): time 4.939e-06/0.5963, allocations: 0 / 0.6346 GB, free: 4.957 MB / 458.7 MB Notification: Performance of matching and sorting (n=188): time 0.06519/0.6615, allocations: 19.43 MB / 0.6535 GB, free: 1.359 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.6616, allocations: 209.2 kB / 0.6537 GB, free: 1.113 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006924/0.6685, allocations: 3.741 MB / 0.6574 GB, free: 13.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004601/0.669, allocations: 49.7 kB / 0.6574 GB, free: 13.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002345/0.6714, allocations: 2.826 MB / 0.6602 GB, free: 10.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/0.6724, allocations: 0.7134 MB / 0.6609 GB, free: 9.738 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004612/0.6729, allocations: 116 kB / 0.661 GB, free: 9.625 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000448/0.6733, allocations: 0.5539 MB / 0.6615 GB, free: 9.062 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003552/0.6769, allocations: 2.077 MB / 0.6636 GB, free: 6.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00609/0.683, allocations: 5.628 MB / 0.6691 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.6933, allocations: 8.375 MB / 0.6772 GB, free: 5.445 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001385/0.6935, allocations: 36 kB / 0.6773 GB, free: 5.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.226/0.9195, allocations: 8.674 MB / 0.6857 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002011/0.9197, allocations: 62.69 kB / 0.6858 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003253/0.9201, allocations: 125.9 kB / 0.6859 GB, free: 146.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005628/0.9257, allocations: 1.433 MB / 0.6873 GB, free: 146 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/0.9299, allocations: 1.294 MB / 0.6886 GB, free: 146 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.9421, allocations: 8.587 MB / 0.697 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004096/0.9463, allocations: 300 kB / 0.6973 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000895/0.9472, allocations: 356.3 kB / 0.6976 GB, free: 143.8 MB / 0.4948 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 (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.003291/0.9505, allocations: 1.901 MB / 0.6994 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006566/0.9512, allocations: 336.6 kB / 0.6998 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007925/0.9591, allocations: 3.793 MB / 0.7035 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-05/0.9592, allocations: 20.58 kB / 0.7035 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.172e-05/0.9592, allocations: 6.906 kB / 0.7035 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.576e-05/0.9592, allocations: 14.12 kB / 0.7035 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01622/0.9755, allocations: 8.205 MB / 0.7115 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.14e-05/0.9755, allocations: 8.156 kB / 0.7115 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.9767, allocations: 246.2 kB / 0.7118 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004455/0.9812, allocations: 1.206 MB / 0.7129 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000191/0.9814, allocations: 38.5 kB / 0.713 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/0.9927, allocations: 7.888 MB / 0.7207 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.9927, allocations: 0 / 0.7207 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/1.004, allocations: 6.286 MB / 0.7268 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001518/1.006, allocations: 0.6202 MB / 0.7274 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007465/1.007, allocations: 29.67 kB / 0.7275 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/1.008, allocations: 79.78 kB / 0.7275 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005592/1.009, allocations: 113 kB / 0.7276 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.009, allocations: 54.58 kB / 0.7277 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005156/1.014, allocations: 2.324 MB / 0.73 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.11e-07/1.014, allocations: 3.875 kB / 0.73 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005982/1.02, allocations: 0.9701 MB / 0.7309 GB, free: 131.3 MB / 0.4948 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 (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.01255/1.033, allocations: 7 MB / 0.7378 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007428/1.04, allocations: 5.18 MB / 0.7428 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.04, allocations: 0 / 0.7428 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002121/1.043, allocations: 1.736 MB / 0.7445 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/1.046, allocations: 385 kB / 0.7449 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05143/1.097, allocations: 33.18 MB / 0.7773 GB, free: 90.45 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003266/1.1, allocations: 2.974 MB / 0.7802 GB, free: 87.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/1.102, allocations: 1.698 MB / 0.7818 GB, free: 85.75 MB / 0.4948 GB Notification: Performance of SimCode: time 7.92e-07/1.102, allocations: 1.531 kB / 0.7818 GB, free: 85.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.893/7.996, allocations: 83.11 MB / 0.863 GB, free: 2.59 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches