Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008106/0.0008106, allocations: 96.2 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.183/0.183, allocations: 45.15 MB / 383.8 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.554e-05/1.557e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.407/0.5118, allocations: 108.8 MB / 0.6107 GB, free: 9.75 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.5121, allocations: 78.08 kB / 0.6107 GB, free: 9.711 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1999/0.712, allocations: 77.11 MB / 0.686 GB, free: 4.918 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7121, allocations: 0 / 0.686 GB, free: 4.918 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001873/0.7123, allocations: 72 kB / 0.6861 GB, free: 4.848 MB / 474.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.01011/0.7224, allocations: 3.613 MB / 0.6896 GB, free: 1.176 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.7225, allocations: 12.03 kB / 0.6897 GB, free: 1.164 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01704/0.7395, allocations: 4.324 MB / 0.6939 GB, free: 12.83 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.7503, allocations: 3.805 MB / 0.6976 GB, free: 8.961 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.7506, allocations: 116 kB / 0.6977 GB, free: 8.848 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/0.7523, allocations: 219.8 kB / 0.6979 GB, free: 8.633 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01046/0.7628, allocations: 5.14 MB / 0.7029 GB, free: 3.488 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02109/0.7839, allocations: 8.221 MB / 0.711 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003448/0.7843, allocations: 63.41 kB / 0.711 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001682/0.786, allocations: 31.94 kB / 0.7111 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001678/0.7877, allocations: 0.8883 MB / 0.7119 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3959/1.184, allocations: 43.42 MB / 0.7543 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003809/1.187, allocations: 2.634 MB / 0.7569 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/1.19, allocations: 1.479 MB / 0.7583 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009963/1.191, allocations: 0.8688 MB / 0.7592 GB, free: 113 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/1.191, allocations: 53.39 kB / 0.7592 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=160): time 4.699e-06/1.191, allocations: 0 / 0.7592 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=196): time 0.03891/1.23, allocations: 15.46 MB / 0.7743 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/1.23, allocations: 203.6 kB / 0.7745 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00378/1.233, allocations: 2.885 MB / 0.7773 GB, free: 110 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001864/1.234, allocations: 25.7 kB / 0.7774 GB, free: 110 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001352/1.235, allocations: 2.87 MB / 0.7802 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005649/1.236, allocations: 0.7298 MB / 0.7809 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/1.236, allocations: 0 / 0.7809 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002717/1.236, allocations: 0.5637 MB / 0.7814 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/1.238, allocations: 1.907 MB / 0.7833 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/1.242, allocations: 5.564 MB / 0.7887 GB, free: 103 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004183/1.246, allocations: 3.241 MB / 0.7919 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.414e-05/1.246, allocations: 36.84 kB / 0.7919 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=797) (initialization): time 0.01705/1.263, allocations: 7.869 MB / 0.7996 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.537e-05/1.263, allocations: 69.17 kB / 0.7997 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/1.264, allocations: 133.5 kB / 0.7998 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004866/1.268, allocations: 1.469 MB / 0.8012 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004409/1.273, allocations: 1.34 MB / 0.8026 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/1.283, allocations: 7.746 MB / 0.8101 GB, free: 97.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005092/1.288, allocations: 195.2 kB / 0.8103 GB, free: 97.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001584/1.29, allocations: 369.2 kB / 0.8107 GB, free: 97.34 MB / 0.5261 GB 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.002062/1.292, allocations: 438.9 kB / 0.8111 GB, free: 96.99 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009055/1.301, allocations: 3.83 MB / 0.8148 GB, free: 95.76 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009556/1.302, allocations: 317.8 kB / 0.8151 GB, free: 95.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00896/1.311, allocations: 3.523 MB / 0.8186 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.524e-05/1.311, allocations: 18.91 kB / 0.8186 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.296e-05/1.311, allocations: 11.45 kB / 0.8186 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.467e-05/1.311, allocations: 14.23 kB / 0.8186 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/1.329, allocations: 7.501 MB / 0.8259 GB, free: 91.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/1.329, allocations: 8.703 kB / 0.8259 GB, free: 91.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/1.33, allocations: 249.7 kB / 0.8262 GB, free: 91.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004465/1.335, allocations: 1.228 MB / 0.8274 GB, free: 91.52 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003336/1.335, allocations: 7.734 kB / 0.8274 GB, free: 91.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009148/1.344, allocations: 6.883 MB / 0.8341 GB, free: 86.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/1.345, allocations: 0 / 0.8341 GB, free: 86.06 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/1.355, allocations: 6.069 MB / 0.84 GB, free: 80.85 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/1.356, allocations: 352.4 kB / 0.8404 GB, free: 80.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009266/1.357, allocations: 4 kB / 0.8404 GB, free: 80.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/1.359, allocations: 61.64 kB / 0.8404 GB, free: 80.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/1.359, allocations: 113.8 kB / 0.8405 GB, free: 80.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/1.359, allocations: 56.05 kB / 0.8406 GB, free: 80.33 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003481/1.363, allocations: 1.911 MB / 0.8425 GB, free: 78.67 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.363, allocations: 0.8438 kB / 0.8425 GB, free: 78.67 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006109/1.369, allocations: 0.838 MB / 0.8433 GB, free: 77.84 MB / 0.5261 GB 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.0101/1.379, allocations: 7.037 MB / 0.8501 GB, free: 71.67 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006775/1.386, allocations: 4.711 MB / 0.8547 GB, free: 67.38 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.386, allocations: 4.062 kB / 0.8548 GB, free: 67.38 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001739/1.388, allocations: 1.57 MB / 0.8563 GB, free: 65.94 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/1.39, allocations: 298.7 kB / 0.8566 GB, free: 65.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02043/1.41, allocations: 7.884 MB / 0.8643 GB, free: 58.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002757/1.413, allocations: 3.045 MB / 0.8672 GB, free: 56.52 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004264/1.417, allocations: 1.909 MB / 0.8691 GB, free: 55.33 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/1.419, allocations: 1.642 MB / 0.8707 GB, free: 53.81 MB / 0.5261 GB Notification: Performance of SimCode: time 1.443e-06/1.419, allocations: 0 / 0.8707 GB, free: 53.81 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/1.527, allocations: 69.74 MB / 0.9388 GB, free: 2.621 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/1.527, allocations: 135.9 kB / 0.9389 GB, free: 2.434 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.992/5.519, allocations: 0 / 0.9389 GB, free: 2.434 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat