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.001485/0.001485, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.958/1.958, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.00111, allocations: 97.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2848/0.2848, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.248e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4062, allocations: 58.86 MB / 477.2 MB, free: 5.141 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.191/0.5973, allocations: 106 MB / 0.5695 GB, free: 9.148 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.5977, allocations: 79.95 kB / 0.5696 GB, free: 9.07 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6786/1.276, allocations: 75.21 MB / 0.643 GB, free: 108.6 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.906e-06/1.276, allocations: 0 / 0.643 GB, free: 108.6 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004285/1.277, allocations: 74.42 kB / 0.6431 GB, free: 108.6 MB / 475.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.02546/1.302, allocations: 3.6 MB / 0.6466 GB, free: 107.3 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.14e-05/1.302, allocations: 9.438 kB / 0.6466 GB, free: 107.3 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04648/1.349, allocations: 4.323 MB / 0.6509 GB, free: 107 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01977/1.369, allocations: 4.475 MB / 0.6552 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/1.369, allocations: 122.2 kB / 0.6554 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002013/1.371, allocations: 218.8 kB / 0.6556 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01379/1.385, allocations: 5.135 MB / 0.6606 GB, free: 106.4 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/1.405, allocations: 8.228 MB / 0.6686 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002715/1.406, allocations: 64.16 kB / 0.6687 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/1.407, allocations: 28.84 kB / 0.6687 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001799/1.409, allocations: 0.8835 MB / 0.6696 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05582/1.465, allocations: 43.44 MB / 0.712 GB, free: 70.98 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004815/1.47, allocations: 2.637 MB / 0.7146 GB, free: 69.51 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002941/1.473, allocations: 1.485 MB / 0.716 GB, free: 68.86 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001395/1.474, allocations: 0.8658 MB / 0.7169 GB, free: 68.08 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.523e-05/1.474, allocations: 55.44 kB / 0.7169 GB, free: 68.02 MB / 475.1 MB Notification: Performance of pre-optimization done (n=160): time 5.23e-06/1.474, allocations: 0 / 0.7169 GB, free: 68.02 MB / 475.1 MB Notification: Performance of matching and sorting (n=196): time 0.06038/1.535, allocations: 15.52 MB / 0.7321 GB, free: 61.89 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.714e-05/1.535, allocations: 203 kB / 0.7323 GB, free: 61.67 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005872/1.541, allocations: 2.899 MB / 0.7351 GB, free: 60.53 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004395/1.541, allocations: 25.7 kB / 0.7351 GB, free: 60.5 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002231/1.543, allocations: 2.851 MB / 0.7379 GB, free: 58.2 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/1.544, allocations: 0.7244 MB / 0.7386 GB, free: 57.67 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005928/1.545, allocations: 0 / 0.7386 GB, free: 57.67 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003803/1.545, allocations: 0.5677 MB / 0.7392 GB, free: 57.24 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004363/1.55, allocations: 1.905 MB / 0.741 GB, free: 55.88 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006774/1.557, allocations: 5.562 MB / 0.7464 GB, free: 48.77 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006767/1.563, allocations: 3.241 MB / 0.7496 GB, free: 46 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/1.564, allocations: 40 kB / 0.7497 GB, free: 45.96 MB / 475.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.02498/1.589, allocations: 7.795 MB / 0.7573 GB, free: 39.38 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/1.589, allocations: 60 kB / 0.7573 GB, free: 39.32 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001727/1.589, allocations: 132 kB / 0.7574 GB, free: 39.19 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009029/1.598, allocations: 1.476 MB / 0.7589 GB, free: 38.12 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008158/1.606, allocations: 1.344 MB / 0.7602 GB, free: 36.94 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01739/1.624, allocations: 7.743 MB / 0.7678 GB, free: 30.17 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006291/1.63, allocations: 197.1 kB / 0.768 GB, free: 30 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001419/1.631, allocations: 367.7 kB / 0.7683 GB, free: 29.65 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (729): * Single equations (assignments): 725 * 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.00155/1.633, allocations: 438.5 kB / 0.7687 GB, free: 29.22 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01422/1.647, allocations: 3.83 MB / 0.7725 GB, free: 26.1 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.648, allocations: 316 kB / 0.7728 GB, free: 25.79 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/1.662, allocations: 3.526 MB / 0.7762 GB, free: 22.64 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.133e-05/1.662, allocations: 27.94 kB / 0.7762 GB, free: 22.61 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/1.662, allocations: 8 kB / 0.7762 GB, free: 22.61 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.89e-05/1.662, allocations: 7.969 kB / 0.7762 GB, free: 22.6 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02467/1.687, allocations: 7.51 MB / 0.7836 GB, free: 15.06 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.171e-05/1.687, allocations: 4.094 kB / 0.7836 GB, free: 15.06 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00243/1.689, allocations: 255.3 kB / 0.7838 GB, free: 14.81 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008072/1.697, allocations: 1.219 MB / 0.785 GB, free: 13.59 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/1.698, allocations: 11.98 kB / 0.785 GB, free: 13.58 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01562/1.713, allocations: 6.881 MB / 0.7918 GB, free: 6.586 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.713, allocations: 4 kB / 0.7918 GB, free: 6.582 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01751/1.731, allocations: 6.064 MB / 0.7977 GB, free: 464 kB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/1.733, allocations: 0.5905 MB / 0.7983 GB, free: 15.84 MB / 491.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009356/1.734, allocations: 7.984 kB / 0.7983 GB, free: 15.83 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002991/1.737, allocations: 59.86 kB / 0.7983 GB, free: 15.77 MB / 491.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006628/1.738, allocations: 117.2 kB / 0.7984 GB, free: 15.66 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/1.738, allocations: 52.84 kB / 0.7985 GB, free: 15.61 MB / 491.1 MB Notification: Performance of sorting global known variables: time 0.005184/1.744, allocations: 1.928 MB / 0.8004 GB, free: 13.69 MB / 491.1 MB Notification: Performance of sort global known variables: time 7.82e-07/1.744, allocations: 0 / 0.8004 GB, free: 13.69 MB / 491.1 MB Notification: Performance of remove unused functions: time 0.007399/1.751, allocations: 0.8359 MB / 0.8012 GB, free: 12.86 MB / 491.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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.02117/1.772, allocations: 7.037 MB / 0.808 GB, free: 5.758 MB / 491.1 MB Notification: Performance of simCode: created initialization part: time 0.01262/1.785, allocations: 4.717 MB / 0.8127 GB, free: 1.051 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.785, allocations: 3.938 kB / 0.8127 GB, free: 1.047 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004193/1.789, allocations: 1.575 MB / 0.8142 GB, free: 15.46 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003156/1.792, allocations: 306.2 kB / 0.8145 GB, free: 15.18 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03049/1.823, allocations: 8.309 MB / 0.8226 GB, free: 6.797 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00751/1.83, allocations: 3.053 MB / 0.8256 GB, free: 3.73 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004765/1.835, allocations: 1.694 MB / 0.8272 GB, free: 2.035 MB / 0.4952 GB Notification: Performance of SimCode: time 1.523e-06/1.835, allocations: 0 / 0.8272 GB, free: 2.035 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.807/6.642, allocations: 87.82 MB / 0.913 GB, free: 91.59 MB / 0.4952 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