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.00134/0.00134, allocations: 112.8 kB / 17.78 MB, free: 5.281 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.001347/0.001347, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.443/1.443, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2274/0.2274, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 67.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.4002, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01227/0.4125, allocations: 10.37 MB / 0.5286 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009001/0.4216, allocations: 3.858 MB / 0.5323 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00222/0.4239, allocations: 61.41 kB / 0.5324 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005332/0.4292, allocations: 2.068 MB / 0.5344 GB, free: 7.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005756/0.4351, allocations: 1.705 MB / 0.5361 GB, free: 6.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002325/0.4374, allocations: 0.7043 MB / 0.5368 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007643/0.4451, allocations: 3.973 MB / 0.5406 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004525/0.4497, allocations: 2.6 MB / 0.5432 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.453, allocations: 1.323 MB / 0.5445 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.4567, allocations: 1.838 MB / 0.5463 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0012/0.458, allocations: 264 kB / 0.5465 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003607/0.4616, allocations: 1.201 MB / 0.5477 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003012/0.4646, allocations: 1.644 MB / 0.5493 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004238/0.4689, allocations: 1.977 MB / 0.5512 GB, free: 10.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.4798, allocations: 6.393 MB / 0.5575 GB, free: 3.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.4798, allocations: 0 / 0.5575 GB, free: 3.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4798, allocations: 0 / 0.5575 GB, free: 3.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002522/0.4801, allocations: 0 / 0.5575 GB, free: 3.98 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.01473/0.4948, allocations: 4.464 MB / 0.5618 GB, free: 15.44 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.4949, allocations: 12.03 kB / 0.5618 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001714/0.4966, allocations: 0.6288 MB / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09616/0.5928, allocations: 7.048 MB / 0.5693 GB, free: 7.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006773/0.5996, allocations: 2.746 MB / 0.572 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.5999, allocations: 197.3 kB / 0.5722 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000865/0.6007, allocations: 275.7 kB / 0.5725 GB, free: 4.457 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01522/0.616, allocations: 8.513 MB / 0.5808 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.6161, allocations: 43.64 kB / 0.5808 GB, free: 11.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003661/0.6165, allocations: 127.9 kB / 0.581 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003007/0.6195, allocations: 1.735 MB / 0.5827 GB, free: 9.414 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01499/0.6345, allocations: 7.151 MB / 0.5896 GB, free: 2.254 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04542/0.68, allocations: 33.87 MB / 0.6227 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009421/0.6895, allocations: 3.42 MB / 0.626 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002683/0.6922, allocations: 1.655 MB / 0.6277 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/0.7048, allocations: 7.23 MB / 0.6347 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.536e-05/0.7049, allocations: 47.56 kB / 0.6348 GB, free: 2.512 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.569e-06/0.7049, allocations: 0 / 0.6348 GB, free: 2.512 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06525/0.7702, allocations: 19.22 MB / 0.6535 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.7704, allocations: 201.2 kB / 0.6537 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005579/0.7759, allocations: 3.757 MB / 0.6574 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002722/0.7762, allocations: 53.7 kB / 0.6574 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002513/0.7788, allocations: 2.933 MB / 0.6603 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008513/0.7796, allocations: 0.7481 MB / 0.661 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/0.7813, allocations: 1.179 MB / 0.6622 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.7815, allocations: 305.1 kB / 0.6625 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003349/0.7848, allocations: 2.088 MB / 0.6645 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006675/0.7915, allocations: 5.644 MB / 0.67 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.803, allocations: 8.399 MB / 0.6782 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/0.8032, allocations: 36.28 kB / 0.6783 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01834/0.8216, allocations: 8.701 MB / 0.6868 GB, free: 9.496 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.8217, allocations: 61.03 kB / 0.6868 GB, free: 9.438 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002196/0.822, allocations: 127.9 kB / 0.687 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005357/0.8273, allocations: 1.399 MB / 0.6883 GB, free: 7.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004271/0.8316, allocations: 1.294 MB / 0.6896 GB, free: 6.613 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01473/0.8464, allocations: 9.205 MB / 0.6986 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004559/0.851, allocations: 299.6 kB / 0.6989 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007177/0.8517, allocations: 360 kB / 0.6992 GB, free: 12.61 MB / 0.5606 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.003202/0.8549, allocations: 1.892 MB / 0.701 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006408/0.8556, allocations: 353.6 kB / 0.7014 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009016/0.8646, allocations: 3.763 MB / 0.7051 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/0.8647, allocations: 20 kB / 0.7051 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.639e-05/0.8647, allocations: 8 kB / 0.7051 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/0.8647, allocations: 7.969 kB / 0.7051 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01735/0.8821, allocations: 8.16 MB / 0.7131 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/0.8821, allocations: 7.984 kB / 0.7131 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.8835, allocations: 247.6 kB / 0.7133 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004996/0.8885, allocations: 1.179 MB / 0.7145 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001878/0.8887, allocations: 31.98 kB / 0.7145 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/0.9024, allocations: 8.471 MB / 0.7228 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.9025, allocations: 0 / 0.7228 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2819/1.184, allocations: 6.275 MB / 0.7289 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/1.186, allocations: 391 kB / 0.7293 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004083/1.186, allocations: 30.78 kB / 0.7293 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/1.187, allocations: 79.28 kB / 0.7294 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003934/1.188, allocations: 113.3 kB / 0.7295 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.188, allocations: 53.53 kB / 0.7295 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00394/1.192, allocations: 2.332 MB / 0.7318 GB, free: 181 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.192, allocations: 2.906 kB / 0.7318 GB, free: 181 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005132/1.197, allocations: 0.9693 MB / 0.7328 GB, free: 180.9 MB / 0.5762 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.01164/1.209, allocations: 6.988 MB / 0.7396 GB, free: 178.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008162/1.217, allocations: 5.207 MB / 0.7447 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/1.217, allocations: 0 / 0.7447 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001974/1.219, allocations: 1.749 MB / 0.7464 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/1.221, allocations: 404.8 kB / 0.7468 GB, free: 175.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05099/1.272, allocations: 44.29 MB / 0.79 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002482/1.275, allocations: 2.965 MB / 0.7929 GB, free: 131.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003352/1.278, allocations: 1.817 MB / 0.7947 GB, free: 130 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/1.28, allocations: 1.651 MB / 0.7963 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.373e-06/1.28, allocations: 0 / 0.7963 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/1.383, allocations: 67.07 MB / 0.8618 GB, free: 61.67 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.1/28.49, allocations: 7.656 kB / 0.8618 GB, free: 61.66 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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.mat","/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