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.002613/0.002612, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.985/1.985, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001151/0.001151, allocations: 107.2 kB / 270.9 MB, free: 8.371 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.5606/0.5606, allocations: 43.54 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004685/0.0004686, allocations: 16 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1337, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5134/0.6472, allocations: 106.8 MB / 0.5831 GB, free: 11.62 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.6476, allocations: 79.95 kB / 0.5831 GB, free: 11.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3399/0.9874, allocations: 76.77 MB / 0.6581 GB, free: 14.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.9875, allocations: 0 / 0.6581 GB, free: 14.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000276/0.9878, allocations: 68 kB / 0.6582 GB, free: 14.26 MB / 490.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.01618/1.004, allocations: 3.861 MB / 0.662 GB, free: 10.33 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/1.004, allocations: 8.031 kB / 0.662 GB, free: 10.32 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003103/1.007, allocations: 0.6677 MB / 0.6626 GB, free: 9.645 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03309/1.04, allocations: 4.324 MB / 0.6668 GB, free: 5.309 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01883/1.059, allocations: 4.503 MB / 0.6712 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004059/1.06, allocations: 272.2 kB / 0.6715 GB, free: 488 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002132/1.062, allocations: 363.8 kB / 0.6718 GB, free: 124 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3625/1.424, allocations: 9.156 MB / 0.6808 GB, free: 92.06 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003431/1.425, allocations: 63.94 kB / 0.6808 GB, free: 92.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001814/1.427, allocations: 180.9 kB / 0.681 GB, free: 92.06 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002099/1.429, allocations: 0.8871 MB / 0.6819 GB, free: 92.06 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02235/1.451, allocations: 7.329 MB / 0.689 GB, free: 92.04 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05959/1.511, allocations: 44.14 MB / 0.7321 GB, free: 62.18 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/1.527, allocations: 3.498 MB / 0.7356 GB, free: 60.78 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01992/1.547, allocations: 7.192 MB / 0.7426 GB, free: 56.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/1.547, allocations: 53.88 kB / 0.7426 GB, free: 56.83 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 5.421e-06/1.547, allocations: 1.25 kB / 0.7426 GB, free: 56.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.1122/1.659, allocations: 19.39 MB / 0.7616 GB, free: 50.51 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/1.659, allocations: 208.5 kB / 0.7618 GB, free: 50.28 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007411/1.666, allocations: 3.312 MB / 0.765 GB, free: 49.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004309/1.667, allocations: 55.48 kB / 0.7651 GB, free: 49.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002251/1.669, allocations: 2.782 MB / 0.7678 GB, free: 46.93 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/1.67, allocations: 0.7072 MB / 0.7685 GB, free: 46.42 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007335/1.671, allocations: 122.3 kB / 0.7686 GB, free: 46.33 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003634/1.671, allocations: 0.5549 MB / 0.7691 GB, free: 45.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004838/1.676, allocations: 1.978 MB / 0.7711 GB, free: 45.26 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007343/1.684, allocations: 5.523 MB / 0.7764 GB, free: 39.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007363/1.691, allocations: 3.252 MB / 0.7796 GB, free: 38.33 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/1.691, allocations: 39.5 kB / 0.7797 GB, free: 38.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.02731/1.719, allocations: 8.463 MB / 0.7879 GB, free: 35.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.907e-05/1.719, allocations: 60.62 kB / 0.788 GB, free: 35.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001908/1.719, allocations: 124.2 kB / 0.7881 GB, free: 35.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00994/1.729, allocations: 1.511 MB / 0.7896 GB, free: 35.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007771/1.737, allocations: 1.287 MB / 0.7908 GB, free: 34.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02046/1.757, allocations: 8.392 MB / 0.799 GB, free: 30.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006389/1.764, allocations: 312.9 kB / 0.7993 GB, free: 30.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/1.765, allocations: 351 kB / 0.7997 GB, free: 30.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (697): * Single equations (assignments): 693 * 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%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005315/1.77, allocations: 1.892 MB / 0.8015 GB, free: 29.73 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000864/1.771, allocations: 341.7 kB / 0.8018 GB, free: 29.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/1.787, allocations: 3.67 MB / 0.8054 GB, free: 27.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.718e-05/1.787, allocations: 20 kB / 0.8054 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-05/1.787, allocations: 11.84 kB / 0.8055 GB, free: 27.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.494e-05/1.787, allocations: 7.5 kB / 0.8055 GB, free: 27.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02801/1.815, allocations: 7.958 MB / 0.8132 GB, free: 20.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.475e-05/1.815, allocations: 0 / 0.8132 GB, free: 20.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002478/1.818, allocations: 239.1 kB / 0.8135 GB, free: 20.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009357/1.827, allocations: 1.285 MB / 0.8147 GB, free: 19.69 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004217/1.827, allocations: 28 kB / 0.8147 GB, free: 19.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01873/1.846, allocations: 7.672 MB / 0.8222 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.846, allocations: 4.062 kB / 0.8222 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/1.866, allocations: 6.108 MB / 0.8282 GB, free: 7.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002242/1.868, allocations: 0.6127 MB / 0.8288 GB, free: 7.238 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/1.869, allocations: 28 kB / 0.8288 GB, free: 7.211 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00322/1.873, allocations: 87.91 kB / 0.8289 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007509/1.873, allocations: 107.8 kB / 0.829 GB, free: 7.082 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00021/1.874, allocations: 51.61 kB / 0.8291 GB, free: 7.035 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006126/1.88, allocations: 2.307 MB / 0.8313 GB, free: 5.148 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.504e-06/1.88, allocations: 0 / 0.8313 GB, free: 5.148 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006898/1.887, allocations: 0.9852 MB / 0.8323 GB, free: 4.176 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.02056/1.907, allocations: 6.93 MB / 0.839 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01278/1.92, allocations: 4.965 MB / 0.8439 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.92, allocations: 2.734 kB / 0.8439 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004269/1.924, allocations: 1.622 MB / 0.8455 GB, free: 8.359 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/1.928, allocations: 369.1 kB / 0.8458 GB, free: 8.047 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4449/2.373, allocations: 118.7 MB / 0.9617 GB, free: 47.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006504/2.379, allocations: 3.05 MB / 0.9647 GB, free: 47.01 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004197/2.384, allocations: 1.699 MB / 0.9663 GB, free: 47 MB / 0.5261 GB Notification: Performance of SimCode: time 1.473e-06/2.384, allocations: 3.594 kB / 0.9663 GB, free: 47 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.194/6.578, allocations: 89.73 MB / 1.054 GB, free: 16.62 MB / 0.5261 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