Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001555/0.00156, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.93/1.93, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001136/0.001136, allocations: 92.36 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003849, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3442, allocations: 47.57 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.491, allocations: 92.94 MB / 467.6 MB, free: 3.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.4914, allocations: 95.95 kB / 467.7 MB, free: 3.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5904/1.082, allocations: 80.24 MB / 0.5351 GB, free: 80.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.082, allocations: 0 / 0.5351 GB, free: 80.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002092/1.082, allocations: 83.94 kB / 0.5351 GB, free: 80.3 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.02196/1.104, allocations: 4.345 MB / 0.5394 GB, free: 75.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/1.104, allocations: 8.031 kB / 0.5394 GB, free: 75.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003197/1.107, allocations: 0.7743 MB / 0.5402 GB, free: 75.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01726/1.125, allocations: 2.252 MB / 0.5424 GB, free: 72.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01663/1.141, allocations: 4.413 MB / 0.5467 GB, free: 68.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003957/1.142, allocations: 332.5 kB / 0.547 GB, free: 68.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002144/1.144, allocations: 427.9 kB / 0.5474 GB, free: 67.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02963/1.174, allocations: 10.62 MB / 0.5578 GB, free: 55.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002513/1.174, allocations: 55.5 kB / 0.5578 GB, free: 55.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001575/1.176, allocations: 211.9 kB / 0.558 GB, free: 55.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00215/1.178, allocations: 1.029 MB / 0.559 GB, free: 54.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02606/1.204, allocations: 8.47 MB / 0.5673 GB, free: 46.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06562/1.269, allocations: 49.13 MB / 0.6153 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0187/1.288, allocations: 3.964 MB / 0.6191 GB, free: 7.289 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01817/1.306, allocations: 7.689 MB / 0.6266 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.82e-05/1.307, allocations: 51.56 kB / 0.6267 GB, free: 15.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=152): time 5.481e-06/1.307, allocations: 3.938 kB / 0.6267 GB, free: 15.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=159): time 0.05869/1.365, allocations: 12.5 MB / 0.6389 GB, free: 2.309 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001778/1.367, allocations: 1.601 MB / 0.6405 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2992/1.666, allocations: 3.422 MB / 0.6438 GB, free: 104.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003973/1.667, allocations: 53.02 kB / 0.6439 GB, free: 104.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002618/1.669, allocations: 3.074 MB / 0.6469 GB, free: 103.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.671, allocations: 0.647 MB / 0.6475 GB, free: 102.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007917/1.671, allocations: 125.8 kB / 0.6476 GB, free: 102.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004373/1.672, allocations: 0.571 MB / 0.6482 GB, free: 102.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006111/1.678, allocations: 2.002 MB / 0.6501 GB, free: 102.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009153/1.687, allocations: 5.919 MB / 0.6559 GB, free: 97.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/1.699, allocations: 3.364 MB / 0.6592 GB, free: 97.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000417/1.7, allocations: 39.75 kB / 0.6592 GB, free: 97.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.0303/1.73, allocations: 8.671 MB / 0.6677 GB, free: 95.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001371/1.73, allocations: 62.75 kB / 0.6678 GB, free: 95.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01031/1.74, allocations: 2.777 MB / 0.6705 GB, free: 94.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008909/1.749, allocations: 1.538 MB / 0.672 GB, free: 94.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007892/1.757, allocations: 1.385 MB / 0.6733 GB, free: 94.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008541/1.766, allocations: 5.585 MB / 0.6788 GB, free: 90.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007472/1.773, allocations: 439.8 kB / 0.6792 GB, free: 90.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/1.775, allocations: 386.5 kB / 0.6796 GB, free: 90.31 MB / 410.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.005615/1.781, allocations: 2.015 MB / 0.6815 GB, free: 89.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008047/1.781, allocations: 332 kB / 0.6818 GB, free: 89.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.793, allocations: 3.111 MB / 0.6849 GB, free: 88.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0101/1.803, allocations: 2.671 MB / 0.6875 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-05/1.803, allocations: 3.25 kB / 0.6875 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.291e-05/1.803, allocations: 5.672 kB / 0.6875 GB, free: 87.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02662/1.83, allocations: 8.582 MB / 0.6959 GB, free: 81.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-05/1.83, allocations: 4 kB / 0.6959 GB, free: 81.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/1.832, allocations: 193.7 kB / 0.6961 GB, free: 81.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008232/1.84, allocations: 1.43 MB / 0.6975 GB, free: 80.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003817/1.841, allocations: 35.12 kB / 0.6975 GB, free: 80.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009077/1.85, allocations: 5.793 MB / 0.7032 GB, free: 75.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001153/1.851, allocations: 1.474 MB / 0.7046 GB, free: 73.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/1.866, allocations: 5.359 MB / 0.7098 GB, free: 69.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/1.867, allocations: 387.2 kB / 0.7102 GB, free: 68.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/1.868, allocations: 28 kB / 0.7102 GB, free: 68.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003102/1.871, allocations: 137.2 kB / 0.7104 GB, free: 68.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005456/1.872, allocations: 93.17 kB / 0.7104 GB, free: 68.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/1.872, allocations: 46.66 kB / 0.7105 GB, free: 68.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006111/1.878, allocations: 2.354 MB / 0.7128 GB, free: 66.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.878, allocations: 0 / 0.7128 GB, free: 66.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006978/1.885, allocations: 1.018 MB / 0.7138 GB, free: 65.76 MB / 410.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.01545/1.901, allocations: 6.149 MB / 0.7198 GB, free: 60.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01376/1.914, allocations: 5.383 MB / 0.725 GB, free: 55.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/1.914, allocations: 0 / 0.725 GB, free: 55.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006411/1.921, allocations: 2.019 MB / 0.727 GB, free: 53.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002995/1.924, allocations: 356.6 kB / 0.7274 GB, free: 53.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4005/2.324, allocations: 129.4 MB / 0.8537 GB, free: 92.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006105/2.331, allocations: 3.204 MB / 0.8569 GB, free: 91.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003792/2.334, allocations: 1.8 MB / 0.8586 GB, free: 91.43 MB / 442.7 MB Notification: Performance of SimCode: time 1.353e-06/2.335, allocations: 0 / 0.8586 GB, free: 91.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.899/7.234, allocations: 158.9 MB / 1.014 GB, free: 131.9 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat