Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.002254/0.002254, allocations: 186.8 kB / 16.4 MB, free: 5.746 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.993/1.993, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001166/0.001165, allocations: 100.8 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004093/0.0004092, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3525, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1669/0.5195, allocations: 99.7 MB / 474.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5198, allocations: 91.95 kB / 474.4 MB, free: 12.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5863/1.106, allocations: 75.65 MB / 0.5372 GB, free: 78.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.106, allocations: 0 / 0.5372 GB, free: 78.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002068/1.106, allocations: 72 kB / 0.5372 GB, free: 78.91 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01553/1.122, allocations: 3.671 MB / 0.5408 GB, free: 75.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.134e-05/1.122, allocations: 8.031 kB / 0.5408 GB, free: 75.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003657/1.126, allocations: 0.6763 MB / 0.5415 GB, free: 74.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02259/1.148, allocations: 2.276 MB / 0.5437 GB, free: 72.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/1.163, allocations: 3.956 MB / 0.5476 GB, free: 68.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003361/1.164, allocations: 279.3 kB / 0.5479 GB, free: 67.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002033/1.166, allocations: 375.8 kB / 0.5482 GB, free: 67.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03282/1.199, allocations: 10.48 MB / 0.5584 GB, free: 56.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002746/1.199, allocations: 59.41 kB / 0.5585 GB, free: 56.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001766/1.201, allocations: 179.9 kB / 0.5587 GB, free: 55.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002441/1.203, allocations: 0.9977 MB / 0.5597 GB, free: 54.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02964/1.233, allocations: 8.761 MB / 0.5682 GB, free: 46.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06354/1.296, allocations: 44.73 MB / 0.6119 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01811/1.315, allocations: 3.865 MB / 0.6157 GB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02114/1.336, allocations: 7.633 MB / 0.6231 GB, free: 3.988 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.899e-05/1.336, allocations: 51.56 kB / 0.6232 GB, free: 3.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 7.133e-06/1.336, allocations: 0 / 0.6232 GB, free: 3.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.09563/1.432, allocations: 17.39 MB / 0.6401 GB, free: 2.359 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/1.432, allocations: 153.4 kB / 0.6403 GB, free: 2.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3021/1.734, allocations: 3.118 MB / 0.6433 GB, free: 106.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000448/1.734, allocations: 51.64 kB / 0.6434 GB, free: 106.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002447/1.737, allocations: 2.691 MB / 0.646 GB, free: 105.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.738, allocations: 0.6405 MB / 0.6466 GB, free: 104.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008144/1.739, allocations: 111.6 kB / 0.6467 GB, free: 104.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000433/1.739, allocations: 0.5381 MB / 0.6473 GB, free: 104.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005746/1.745, allocations: 1.942 MB / 0.6492 GB, free: 104.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008784/1.754, allocations: 5.326 MB / 0.6544 GB, free: 100.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008813/1.763, allocations: 3.128 MB / 0.6574 GB, free: 100.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002209/1.763, allocations: 34.28 kB / 0.6575 GB, free: 100.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02647/1.79, allocations: 8.052 MB / 0.6653 GB, free: 98.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/1.79, allocations: 60.25 kB / 0.6654 GB, free: 98.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001914/1.79, allocations: 121.8 kB / 0.6655 GB, free: 98.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007312/1.797, allocations: 1.31 MB / 0.6668 GB, free: 98.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007914/1.805, allocations: 1.262 MB / 0.668 GB, free: 98.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/1.82, allocations: 6.297 MB / 0.6742 GB, free: 95.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006941/1.827, allocations: 344.4 kB / 0.6745 GB, free: 95.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/1.829, allocations: 338 kB / 0.6748 GB, free: 95.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[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 (679): * Single equations (assignments): 675 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005431/1.834, allocations: 1.818 MB / 0.6766 GB, free: 94.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008383/1.835, allocations: 303.7 kB / 0.6769 GB, free: 94.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01263/1.848, allocations: 3.35 MB / 0.6801 GB, free: 93.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.88e-05/1.848, allocations: 23.55 kB / 0.6802 GB, free: 93.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.848, allocations: 7.312 kB / 0.6802 GB, free: 93.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.592e-05/1.848, allocations: 9.031 kB / 0.6802 GB, free: 93.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0245/1.873, allocations: 7.597 MB / 0.6876 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.275e-05/1.873, allocations: 2.844 kB / 0.6876 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002357/1.875, allocations: 243 kB / 0.6878 GB, free: 90.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006857/1.882, allocations: 1.111 MB / 0.6889 GB, free: 90.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004099/1.882, allocations: 26.59 kB / 0.6889 GB, free: 90.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/1.896, allocations: 5.941 MB / 0.6947 GB, free: 86.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.896, allocations: 3.938 kB / 0.6948 GB, free: 86.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01612/1.912, allocations: 5.742 MB / 0.7004 GB, free: 81.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002087/1.915, allocations: 0.5781 MB / 0.7009 GB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008691/1.915, allocations: 35 kB / 0.701 GB, free: 81.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002884/1.918, allocations: 108.3 kB / 0.7011 GB, free: 81.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005869/1.919, allocations: 84.12 kB / 0.7011 GB, free: 80.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001835/1.919, allocations: 40 kB / 0.7012 GB, free: 80.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005642/1.925, allocations: 2.171 MB / 0.7033 GB, free: 79.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.925, allocations: 0 / 0.7033 GB, free: 79.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006438/1.931, allocations: 0.9209 MB / 0.7042 GB, free: 78.26 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01688/1.948, allocations: 6.574 MB / 0.7106 GB, free: 72.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01181/1.96, allocations: 4.738 MB / 0.7152 GB, free: 68.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.96, allocations: 0 / 0.7152 GB, free: 68.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003934/1.964, allocations: 1.533 MB / 0.7167 GB, free: 67.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002876/1.967, allocations: 319.4 kB / 0.717 GB, free: 66.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3966/2.364, allocations: 113.2 MB / 0.8276 GB, free: 124.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006107/2.37, allocations: 2.935 MB / 0.8305 GB, free: 123.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004019/2.374, allocations: 1.637 MB / 0.8321 GB, free: 123.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.563e-06/2.374, allocations: 0 / 0.8321 GB, free: 123.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.093/6.467, allocations: 84.93 MB / 0.915 GB, free: 59.61 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat