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.002169/0.002169, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001182/0.001182, allocations: 90.88 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2955/0.2955, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004951/0.0004953, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.12, allocations: 58.85 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.04752/0.1675, allocations: 29.77 MB / 0.5079 GB, free: 11.38 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02264/0.1902, allocations: 7.773 MB / 0.5155 GB, free: 3.59 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006176/0.1965, allocations: 155.6 kB / 0.5156 GB, free: 3.438 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005815/0.2023, allocations: 1.423 MB / 0.517 GB, free: 2.008 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3502/0.5526, allocations: 4.351 MB / 0.5213 GB, free: 11.24 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003204/0.5559, allocations: 0.5686 MB / 0.5218 GB, free: 11.23 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03613/0.5921, allocations: 13.95 MB / 0.5355 GB, free: 10.76 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006648/0.5988, allocations: 2.969 MB / 0.5384 GB, free: 10.45 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00351/0.6024, allocations: 0.9346 MB / 0.5393 GB, free: 10.45 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003666/0.6061, allocations: 1.282 MB / 0.5405 GB, free: 10.27 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001305/0.6075, allocations: 123.3 kB / 0.5406 GB, free: 10.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003267/0.6108, allocations: 0.9313 MB / 0.5416 GB, free: 10.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002393/0.6133, allocations: 1.384 MB / 0.5429 GB, free: 9.781 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.6146, allocations: 0.7247 MB / 0.5436 GB, free: 9.75 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007284/0.6219, allocations: 4.841 MB / 0.5483 GB, free: 7.199 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.622, allocations: 0 / 0.5483 GB, free: 7.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.622, allocations: 4 kB / 0.5483 GB, free: 7.195 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002391/0.6222, allocations: 0 / 0.5483 GB, free: 7.195 MB / 362.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.01365/0.6359, allocations: 3.71 MB / 0.552 GB, free: 4.719 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.636, allocations: 8.031 kB / 0.552 GB, free: 4.711 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002079/0.6381, allocations: 0.6301 MB / 0.5526 GB, free: 4.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1735/0.8116, allocations: 8.287 MB / 0.5607 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008942/0.8205, allocations: 2.602 MB / 0.5632 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/0.8209, allocations: 191.5 kB / 0.5634 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001494/0.8224, allocations: 282.9 kB / 0.5637 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02335/0.8457, allocations: 8.578 MB / 0.5721 GB, free: 3.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001797/0.846, allocations: 39.75 kB / 0.5721 GB, free: 3.371 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007159/0.8467, allocations: 127 kB / 0.5722 GB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005191/0.8519, allocations: 1.732 MB / 0.5739 GB, free: 1.902 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02329/0.8752, allocations: 7.229 MB / 0.581 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06399/0.9393, allocations: 34.06 MB / 0.6142 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0157/0.9551, allocations: 3.461 MB / 0.6176 GB, free: 7.223 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0207/0.9758, allocations: 7.289 MB / 0.6247 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.289e-05/0.9759, allocations: 55.56 kB / 0.6248 GB, free: 15.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 5.55e-06/0.976, allocations: 7.312 kB / 0.6248 GB, free: 15.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=188): time 0.1175/1.093, allocations: 19.67 MB / 0.644 GB, free: 11.86 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/1.094, allocations: 205.2 kB / 0.6442 GB, free: 11.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008796/1.102, allocations: 3.866 MB / 0.648 GB, free: 7.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004448/1.103, allocations: 55.45 kB / 0.648 GB, free: 7.711 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00321/1.106, allocations: 2.757 MB / 0.6507 GB, free: 4.973 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001298/1.108, allocations: 0.7221 MB / 0.6514 GB, free: 4.258 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006653/1.108, allocations: 112 kB / 0.6515 GB, free: 4.148 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005291/1.109, allocations: 0.5547 MB / 0.6521 GB, free: 3.582 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006213/1.115, allocations: 2.073 MB / 0.6541 GB, free: 1.504 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009766/1.125, allocations: 5.606 MB / 0.6596 GB, free: 10.13 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008682/1.134, allocations: 3.339 MB / 0.6628 GB, free: 6.805 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.134, allocations: 36 kB / 0.6629 GB, free: 6.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02987/1.164, allocations: 8.558 MB / 0.6712 GB, free: 14.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/1.164, allocations: 65.62 kB / 0.6713 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002116/1.164, allocations: 124 kB / 0.6714 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009967/1.174, allocations: 1.462 MB / 0.6728 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008114/1.182, allocations: 1.291 MB / 0.6741 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02397/1.206, allocations: 8.882 MB / 0.6828 GB, free: 2.246 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00628/1.213, allocations: 303.6 kB / 0.683 GB, free: 1.949 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/1.214, allocations: 359.4 kB / 0.6834 GB, free: 1.602 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.005569/1.219, allocations: 1.9 MB / 0.6852 GB, free: 15.69 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000969/1.22, allocations: 331.7 kB / 0.6856 GB, free: 15.36 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01592/1.236, allocations: 3.794 MB / 0.6893 GB, free: 11.55 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.121e-05/1.236, allocations: 20.47 kB / 0.6893 GB, free: 11.53 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-05/1.236, allocations: 9.969 kB / 0.6893 GB, free: 11.52 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.62e-05/1.237, allocations: 15.92 kB / 0.6893 GB, free: 11.51 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02964/1.266, allocations: 8.209 MB / 0.6973 GB, free: 3.277 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.343e-05/1.266, allocations: 0 / 0.6973 GB, free: 3.277 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002525/1.269, allocations: 253.7 kB / 0.6976 GB, free: 3.031 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009254/1.278, allocations: 1.209 MB / 0.6987 GB, free: 1.82 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004041/1.279, allocations: 31.98 kB / 0.6988 GB, free: 1.789 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02232/1.301, allocations: 8.174 MB / 0.7068 GB, free: 9.488 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.301, allocations: 0 / 0.7068 GB, free: 9.488 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0216/1.323, allocations: 6.369 MB / 0.713 GB, free: 3.086 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.325, allocations: 0.6254 MB / 0.7136 GB, free: 2.438 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008604/1.326, allocations: 28 kB / 0.7136 GB, free: 2.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002697/1.329, allocations: 82.56 kB / 0.7137 GB, free: 2.332 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006475/1.329, allocations: 117.1 kB / 0.7138 GB, free: 2.219 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002268/1.33, allocations: 51.95 kB / 0.7139 GB, free: 2.168 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.3382/1.668, allocations: 2.423 MB / 0.7162 GB, free: 180.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.22e-07/1.668, allocations: 0 / 0.7162 GB, free: 180.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007335/1.675, allocations: 0.9909 MB / 0.7172 GB, free: 180.9 MB / 0.5105 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.02157/1.697, allocations: 7.25 MB / 0.7243 GB, free: 179.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01347/1.71, allocations: 5.173 MB / 0.7293 GB, free: 177.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.71, allocations: 1.469 kB / 0.7293 GB, free: 177.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004434/1.715, allocations: 1.74 MB / 0.731 GB, free: 176.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/1.718, allocations: 366 kB / 0.7314 GB, free: 176.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1053/1.823, allocations: 119.1 MB / 0.8477 GB, free: 67.54 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005455/1.829, allocations: 3.056 MB / 0.8507 GB, free: 65.19 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00366/1.832, allocations: 1.706 MB / 0.8524 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of SimCode: time 1.863e-06/1.833, allocations: 0 / 0.8524 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.161/6.993, allocations: 89.92 MB / 0.9402 GB, free: 173.4 MB / 0.5105 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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat