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.001103/0.001103, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.594/1.594, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009293/0.0009292, allocations: 94.95 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.865e-05, allocations: 4 kB / 343.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1242, allocations: 50.4 MB / 394.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3823/0.5066, allocations: 94.43 MB / 488.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.507, allocations: 87.95 kB / 488.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4874/0.9943, allocations: 81.38 MB / 0.5569 GB, free: 95.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.41e-06/0.9944, allocations: 1 kB / 0.5569 GB, free: 95.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003038/0.9947, allocations: 86.88 kB / 0.557 GB, free: 95.42 MB / 426.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.019/1.014, allocations: 4.149 MB / 0.561 GB, free: 93.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/1.014, allocations: 9.594 kB / 0.561 GB, free: 93.82 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002752/1.017, allocations: 0.7744 MB / 0.5618 GB, free: 93.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01117/1.028, allocations: 2.26 MB / 0.564 GB, free: 93.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01412/1.042, allocations: 4.254 MB / 0.5681 GB, free: 92.94 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004761/1.042, allocations: 329.2 kB / 0.5685 GB, free: 92.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002246/1.045, allocations: 430.5 kB / 0.5689 GB, free: 92.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0239/1.069, allocations: 10.51 MB / 0.5791 GB, free: 89.97 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/1.069, allocations: 60.28 kB / 0.5792 GB, free: 89.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007981/1.07, allocations: 211.8 kB / 0.5794 GB, free: 89.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001335/1.071, allocations: 1.033 MB / 0.5804 GB, free: 89.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/1.087, allocations: 8.28 MB / 0.5885 GB, free: 88.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04701/1.134, allocations: 49.1 MB / 0.6364 GB, free: 51.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009378/1.144, allocations: 3.937 MB / 0.6403 GB, free: 49.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00183/1.145, allocations: 1.379 MB / 0.6416 GB, free: 49.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009509/1.155, allocations: 7.672 MB / 0.6491 GB, free: 43.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/1.155, allocations: 59.28 kB / 0.6492 GB, free: 43.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=152): time 3.917e-06/1.155, allocations: 0 / 0.6492 GB, free: 43.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=159): time 0.02358/1.179, allocations: 10.07 MB / 0.659 GB, free: 34.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009833/1.18, allocations: 1.587 MB / 0.6606 GB, free: 32.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004705/1.184, allocations: 3.354 MB / 0.6638 GB, free: 29.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003566/1.185, allocations: 45.7 kB / 0.6639 GB, free: 29.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/1.186, allocations: 3.119 MB / 0.6669 GB, free: 26.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006849/1.187, allocations: 0.6448 MB / 0.6675 GB, free: 26.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/1.187, allocations: 120 kB / 0.6677 GB, free: 26.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002499/1.188, allocations: 0.572 MB / 0.6682 GB, free: 25.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/1.19, allocations: 1.934 MB / 0.6701 GB, free: 24.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003926/1.194, allocations: 5.842 MB / 0.6758 GB, free: 16.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004051/1.198, allocations: 3.338 MB / 0.6791 GB, free: 13.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.021e-05/1.198, allocations: 43.84 kB / 0.6791 GB, free: 13.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01775/1.216, allocations: 8.611 MB / 0.6875 GB, free: 5.867 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/1.216, allocations: 71.94 kB / 0.6876 GB, free: 5.797 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00558/1.222, allocations: 2.758 MB / 0.6903 GB, free: 3.031 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004562/1.226, allocations: 1.53 MB / 0.6918 GB, free: 1.488 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004409/1.231, allocations: 1.372 MB / 0.6931 GB, free: 116 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006129/1.237, allocations: 5.503 MB / 0.6985 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005665/1.242, allocations: 439.3 kB / 0.6989 GB, free: 9.895 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001311/1.244, allocations: 392 kB / 0.6993 GB, free: 9.512 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 () * 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.001854/1.246, allocations: 0.5871 MB / 0.6999 GB, free: 8.922 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009077/1.247, allocations: 331.7 kB / 0.7002 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007944/1.255, allocations: 3.096 MB / 0.7032 GB, free: 5.484 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005823/1.26, allocations: 2.643 MB / 0.7058 GB, free: 2.828 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/1.26, allocations: 7.828 kB / 0.7058 GB, free: 2.824 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/1.26, allocations: 7.984 kB / 0.7058 GB, free: 2.816 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3296/1.59, allocations: 8.554 MB / 0.7142 GB, free: 97.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.022e-05/1.59, allocations: 4.016 kB / 0.7142 GB, free: 97.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.591, allocations: 188.6 kB / 0.7143 GB, free: 97.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005615/1.597, allocations: 1.432 MB / 0.7157 GB, free: 97.67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003827/1.597, allocations: 40.05 kB / 0.7158 GB, free: 97.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007061/1.604, allocations: 5.7 MB / 0.7213 GB, free: 94.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008376/1.605, allocations: 1.455 MB / 0.7228 GB, free: 93.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009918/1.615, allocations: 5.313 MB / 0.7279 GB, free: 92.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/1.617, allocations: 384.5 kB / 0.7283 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003706/1.617, allocations: 32.09 kB / 0.7283 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/1.618, allocations: 137.6 kB / 0.7285 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/1.619, allocations: 92.39 kB / 0.7286 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/1.619, allocations: 49.55 kB / 0.7286 GB, free: 92.56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004604/1.624, allocations: 2.283 MB / 0.7308 GB, free: 92.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.624, allocations: 0 / 0.7308 GB, free: 92.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005715/1.629, allocations: 1.018 MB / 0.7318 GB, free: 92.4 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 () * 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.008553/1.638, allocations: 6.114 MB / 0.7378 GB, free: 91.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008968/1.647, allocations: 5.29 MB / 0.743 GB, free: 90.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/1.647, allocations: 0 / 0.743 GB, free: 90.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003557/1.65, allocations: 1.994 MB / 0.7449 GB, free: 90 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002359/1.653, allocations: 365.3 kB / 0.7453 GB, free: 89.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/1.672, allocations: 8.733 MB / 0.7538 GB, free: 86.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002858/1.675, allocations: 3.19 MB / 0.7569 GB, free: 85.59 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00429/1.679, allocations: 1.806 MB / 0.7587 GB, free: 85.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/1.681, allocations: 1.765 MB / 0.7604 GB, free: 84.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.513e-06/1.681, allocations: 0 / 0.7604 GB, free: 84.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/1.788, allocations: 74.02 MB / 0.8327 GB, free: 29.87 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/1.788, allocations: 211.2 kB / 0.8329 GB, free: 29.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.495/6.283, allocations: 0 / 0.8329 GB, free: 29.63 MB / 442.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