Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009553/0.0009554, allocations: 198.4 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007378/0.0007379, allocations: 103.6 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002053/0.0002054, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.186, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.02471/0.2108, allocations: 38.21 MB / 446.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.2264, allocations: 8.705 MB / 455 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004971/0.2314, allocations: 183.6 kB / 455.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004668/0.2361, allocations: 1.967 MB / 457.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.2492, allocations: 5.92 MB / 463.1 MB, free: 4.543 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.2518, allocations: 0.6007 MB / 463.7 MB, free: 3.941 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004946/0.2567, allocations: 4.342 MB / 468.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005382/0.2621, allocations: 4.663 MB / 472.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.2638, allocations: 1.195 MB / 473.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002002/0.2658, allocations: 1.799 MB / 475.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003942/0.2662, allocations: 140 kB / 475.9 MB, free: 7.691 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00175/0.268, allocations: 1.01 MB / 476.9 MB, free: 6.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001285/0.2693, allocations: 1.601 MB / 478.5 MB, free: 5.074 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.2708, allocations: 1.827 MB / 480.3 MB, free: 3.23 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004349/0.2751, allocations: 5.114 MB / 485.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2752, allocations: 0 / 485.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.566e-06/0.2752, allocations: 0 / 485.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001606/0.2753, allocations: 3.938 kB / 485.4 MB, free: 14.1 MB / 362.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.007254/0.2826, allocations: 3.754 MB / 489.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.2826, allocations: 8.031 kB / 489.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/0.2837, allocations: 0.7197 MB / 489.9 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006483/0.2902, allocations: 1.984 MB / 491.9 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00389/0.2941, allocations: 2.192 MB / 494.1 MB, free: 5.309 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.2943, allocations: 250.2 kB / 494.3 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008246/0.2951, allocations: 391.7 kB / 494.7 MB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/0.311, allocations: 10.06 MB / 0.4929 GB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-05/0.3111, allocations: 39.69 kB / 0.493 GB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.3115, allocations: 159.8 kB / 0.4931 GB, free: 9.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002419/0.3139, allocations: 1.857 MB / 0.4949 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1709/0.4849, allocations: 8.28 MB / 0.503 GB, free: 90.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03243/0.5173, allocations: 39.36 MB / 0.5414 GB, free: 60.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008213/0.5256, allocations: 3.98 MB / 0.5453 GB, free: 56.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.527, allocations: 1.425 MB / 0.5467 GB, free: 55.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007163/0.5342, allocations: 7.591 MB / 0.5541 GB, free: 47.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.5342, allocations: 47.56 kB / 0.5542 GB, free: 47.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 3.627e-06/0.5342, allocations: 0 / 0.5542 GB, free: 47.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.0252/0.5594, allocations: 12.4 MB / 0.5663 GB, free: 34.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000773/0.5602, allocations: 1.589 MB / 0.5678 GB, free: 32.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0036/0.5638, allocations: 3.805 MB / 0.5716 GB, free: 29.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001602/0.564, allocations: 49.64 kB / 0.5716 GB, free: 29.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.5651, allocations: 3.115 MB / 0.5746 GB, free: 25.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003802/0.5655, allocations: 0.6478 MB / 0.5753 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.5657, allocations: 127.8 kB / 0.5754 GB, free: 25.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.5659, allocations: 0.5625 MB / 0.576 GB, free: 24.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002485/0.5684, allocations: 1.98 MB / 0.5779 GB, free: 22.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003425/0.5719, allocations: 5.918 MB / 0.5837 GB, free: 14.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006075/0.578, allocations: 8.547 MB / 0.592 GB, free: 4.277 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.487e-05/0.578, allocations: 40 kB / 0.592 GB, free: 4.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01382/0.5919, allocations: 8.721 MB / 0.6006 GB, free: 11.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.712e-05/0.592, allocations: 66.97 kB / 0.6006 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005652/0.5976, allocations: 2.786 MB / 0.6034 GB, free: 8.633 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004711/0.6024, allocations: 1.526 MB / 0.6048 GB, free: 7.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003793/0.6062, allocations: 1.365 MB / 0.6062 GB, free: 5.723 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00537/0.6116, allocations: 5.506 MB / 0.6115 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004002/0.6156, allocations: 394.8 kB / 0.6119 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008/0.6164, allocations: 396 kB / 0.6123 GB, free: 15.15 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.003231/0.6197, allocations: 2.013 MB / 0.6143 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005842/0.6202, allocations: 323.8 kB / 0.6146 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006521/0.6268, allocations: 3.133 MB / 0.6176 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005323/0.6321, allocations: 2.679 MB / 0.6203 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.6322, allocations: 4 kB / 0.6203 GB, free: 6.949 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.6322, allocations: 7.969 kB / 0.6203 GB, free: 6.941 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/0.6477, allocations: 8.557 MB / 0.6286 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/0.6478, allocations: 3.984 kB / 0.6286 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008684/0.6486, allocations: 187.7 kB / 0.6288 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004396/0.6531, allocations: 1.435 MB / 0.6302 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/0.6532, allocations: 39.97 kB / 0.6302 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005709/0.659, allocations: 5.703 MB / 0.6358 GB, free: 6.633 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009134/0.6599, allocations: 1.465 MB / 0.6372 GB, free: 5.023 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008625/0.6685, allocations: 5.283 MB / 0.6424 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008046/0.6694, allocations: 380.6 kB / 0.6428 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005384/0.6699, allocations: 35.98 kB / 0.6428 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.6715, allocations: 119.8 kB / 0.6429 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/0.6718, allocations: 96.19 kB / 0.643 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.6719, allocations: 55.91 kB / 0.6431 GB, free: 15.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003664/0.6756, allocations: 2.322 MB / 0.6453 GB, free: 12.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6756, allocations: 0 / 0.6453 GB, free: 12.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004403/0.68, allocations: 1.004 MB / 0.6463 GB, free: 11.7 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 {(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 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.008072/0.6881, allocations: 5.765 MB / 0.6519 GB, free: 5.895 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008592/0.6967, allocations: 5.356 MB / 0.6572 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.6968, allocations: 0 / 0.6572 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003785/0.7006, allocations: 2.023 MB / 0.6591 GB, free: 14.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002809/0.7034, allocations: 380.4 kB / 0.6595 GB, free: 14.03 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.195/0.8984, allocations: 33.51 MB / 0.6922 GB, free: 146.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002387/0.9008, allocations: 3.106 MB / 0.6953 GB, free: 144.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/0.9024, allocations: 1.817 MB / 0.697 GB, free: 143.5 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/0.9024, allocations: 0 / 0.697 GB, free: 143.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.446/8.349, allocations: 157 MB / 0.8503 GB, free: 152.5 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat