Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008244/0.0008244, allocations: 98.34 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003313, allocations: 8 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2569, allocations: 50.39 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.3691, allocations: 94.5 MB / 496.1 MB, free: 1.926 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.3694, allocations: 91.94 kB / 496.2 MB, free: 1.836 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3827/0.7522, allocations: 81.34 MB / 0.564 GB, free: 48.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.097e-06/0.7522, allocations: 0 / 0.564 GB, free: 48.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000293/0.7525, allocations: 76 kB / 0.564 GB, free: 48.67 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.0196/0.7722, allocations: 4.328 MB / 0.5683 GB, free: 44.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.7722, allocations: 12.03 kB / 0.5683 GB, free: 44.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003523/0.7758, allocations: 0.7743 MB / 0.569 GB, free: 43.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01003/0.7858, allocations: 2.256 MB / 0.5712 GB, free: 41.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/0.7983, allocations: 4.277 MB / 0.5754 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/0.7987, allocations: 328.5 kB / 0.5757 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001905/0.8006, allocations: 423.9 kB / 0.5761 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02364/0.8242, allocations: 10.62 MB / 0.5865 GB, free: 24.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003416/0.8247, allocations: 63.34 kB / 0.5866 GB, free: 24.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001997/0.8267, allocations: 207.9 kB / 0.5868 GB, free: 24.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00145/0.8282, allocations: 1.033 MB / 0.5878 GB, free: 23.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01578/0.844, allocations: 8.47 MB / 0.5961 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05796/0.902, allocations: 49.11 MB / 0.644 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.9123, allocations: 3.957 MB / 0.6479 GB, free: 7.824 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01415/0.9265, allocations: 7.666 MB / 0.6554 GB, free: 15.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.389e-05/0.9266, allocations: 51.5 kB / 0.6554 GB, free: 15.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=152): time 6.733e-06/0.9267, allocations: 7.938 kB / 0.6554 GB, free: 15.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=159): time 0.03426/0.9609, allocations: 12.43 MB / 0.6676 GB, free: 2.926 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001542/0.9626, allocations: 1.612 MB / 0.6691 GB, free: 1.141 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2485/1.211, allocations: 3.411 MB / 0.6725 GB, free: 112.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004044/1.212, allocations: 48.23 kB / 0.6725 GB, free: 112.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002027/1.214, allocations: 3.12 MB / 0.6756 GB, free: 111.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007558/1.214, allocations: 0.6467 MB / 0.6762 GB, free: 111.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/1.215, allocations: 121.8 kB / 0.6763 GB, free: 111.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002556/1.215, allocations: 0.5685 MB / 0.6769 GB, free: 110.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002727/1.218, allocations: 2.008 MB / 0.6788 GB, free: 110.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00422/1.222, allocations: 5.916 MB / 0.6846 GB, free: 105.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004371/1.226, allocations: 3.366 MB / 0.6879 GB, free: 105.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.892e-05/1.226, allocations: 38.25 kB / 0.6879 GB, free: 105.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01615/1.243, allocations: 8.756 MB / 0.6965 GB, free: 105 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001575/1.243, allocations: 64.69 kB / 0.6965 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005626/1.248, allocations: 2.781 MB / 0.6992 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004953/1.253, allocations: 1.536 MB / 0.7007 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004829/1.258, allocations: 1.377 MB / 0.7021 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005286/1.264, allocations: 5.588 MB / 0.7076 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005405/1.269, allocations: 439.1 kB / 0.708 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001373/1.27, allocations: 385.7 kB / 0.7083 GB, free: 100.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {4 31} Notification: Performance of prepare postOptimizeDAE: time 0.005117/1.276, allocations: 2.011 MB / 0.7103 GB, free: 99.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008481/1.276, allocations: 330.7 kB / 0.7106 GB, free: 99.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007169/1.284, allocations: 3.126 MB / 0.7137 GB, free: 98.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005143/1.289, allocations: 2.664 MB / 0.7163 GB, free: 97.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-05/1.289, allocations: 10.94 kB / 0.7163 GB, free: 97.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.125e-05/1.289, allocations: 6.422 kB / 0.7163 GB, free: 97.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01997/1.309, allocations: 8.568 MB / 0.7247 GB, free: 94.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/1.309, allocations: 7.438 kB / 0.7247 GB, free: 94.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008766/1.31, allocations: 202.4 kB / 0.7249 GB, free: 94.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004112/1.314, allocations: 1.431 MB / 0.7263 GB, free: 94.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/1.314, allocations: 38.19 kB / 0.7263 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/1.319, allocations: 5.789 MB / 0.7319 GB, free: 89.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007102/1.32, allocations: 1.465 MB / 0.7334 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008019/1.328, allocations: 5.344 MB / 0.7386 GB, free: 83.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/1.329, allocations: 387.3 kB / 0.739 GB, free: 82.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008625/1.33, allocations: 36.72 kB / 0.739 GB, free: 82.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/1.332, allocations: 132.9 kB / 0.7391 GB, free: 82.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/1.332, allocations: 93.8 kB / 0.7392 GB, free: 82.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.332, allocations: 47.17 kB / 0.7393 GB, free: 82.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003947/1.336, allocations: 2.344 MB / 0.7415 GB, free: 80.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.336, allocations: 0 / 0.7415 GB, free: 80.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005836/1.342, allocations: 1.015 MB / 0.7425 GB, free: 79.78 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {7 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.008411/1.351, allocations: 6.163 MB / 0.7486 GB, free: 74.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009079/1.36, allocations: 5.385 MB / 0.7538 GB, free: 69.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.36, allocations: 0 / 0.7538 GB, free: 69.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003388/1.363, allocations: 2.012 MB / 0.7558 GB, free: 67.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/1.366, allocations: 368.1 kB / 0.7561 GB, free: 67.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3588/1.725, allocations: 128.9 MB / 0.882 GB, free: 84.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004311/1.729, allocations: 3.189 MB / 0.8851 GB, free: 83.64 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004591/1.734, allocations: 1.8 MB / 0.8869 GB, free: 83.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/1.736, allocations: 1.762 MB / 0.8886 GB, free: 83.59 MB / 458.7 MB Notification: Performance of SimCode: time 1.042e-06/1.736, allocations: 2.469 kB / 0.8886 GB, free: 83.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1146/1.851, allocations: 73.77 MB / 0.9606 GB, free: 34.06 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/1.851, allocations: 226.1 kB / 0.9608 GB, free: 33.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.285/6.136, allocations: 0 / 0.9608 GB, free: 33.81 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat