Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",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.001513/0.001513, allocations: 179.3 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.359/1.359, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0009124/0.0009121, allocations: 98.09 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002901/0.0002902, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2638, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1131/0.377, allocations: 91.83 MB / 493.4 MB, free: 4.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.3773, allocations: 93.56 kB / 493.5 MB, free: 4.535 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3617/0.739, allocations: 58.37 MB / 0.5389 GB, free: 74.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.7391, allocations: 0 / 0.5389 GB, free: 74.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001101/0.7392, allocations: 44 kB / 0.539 GB, free: 74.5 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.006664/0.7459, allocations: 2.657 MB / 0.5416 GB, free: 71.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.7459, allocations: 8.031 kB / 0.5416 GB, free: 71.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001407/0.7473, allocations: 485.8 kB / 0.542 GB, free: 71.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007772/0.7551, allocations: 1.97 MB / 0.544 GB, free: 69.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/0.7632, allocations: 3.166 MB / 0.5471 GB, free: 66.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.7634, allocations: 172.6 kB / 0.5472 GB, free: 65.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009324/0.7643, allocations: 231.9 kB / 0.5474 GB, free: 65.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.7748, allocations: 6.814 MB / 0.5541 GB, free: 58.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001211/0.775, allocations: 47.53 kB / 0.5541 GB, free: 58.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005725/0.7756, allocations: 127.9 kB / 0.5543 GB, free: 57.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007911/0.7764, allocations: 0.715 MB / 0.555 GB, free: 57.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00822/0.7846, allocations: 5.836 MB / 0.5607 GB, free: 51.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02397/0.8086, allocations: 33.38 MB / 0.5933 GB, free: 16.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003632/0.8123, allocations: 2.286 MB / 0.5955 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.534e-05/0.8123, allocations: 7.984 kB / 0.5955 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.8124, allocations: 46.56 kB / 0.5956 GB, free: 14.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.228e-06/0.8124, allocations: 3.938 kB / 0.5956 GB, free: 14.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01688/0.8293, allocations: 8.684 MB / 0.604 GB, free: 5.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.8294, allocations: 144.5 kB / 0.6042 GB, free: 5.258 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003202/0.8326, allocations: 2.541 MB / 0.6067 GB, free: 2.703 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001761/0.8328, allocations: 45.69 kB / 0.6067 GB, free: 2.652 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008963/0.8337, allocations: 2.079 MB / 0.6087 GB, free: 0.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/0.834, allocations: 430.8 kB / 0.6091 GB, free: 120 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.8342, allocations: 88 kB / 0.6092 GB, free: 32 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003272/0.8345, allocations: 495.7 kB / 0.6097 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/0.8369, allocations: 1.41 MB / 0.6111 GB, free: 14.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004123/0.8411, allocations: 4.22 MB / 0.6152 GB, free: 8.469 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.8446, allocations: 2.409 MB / 0.6175 GB, free: 6.062 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.445e-05/0.8446, allocations: 28 kB / 0.6176 GB, free: 6.035 MB / 394.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01094/0.8556, allocations: 6.081 MB / 0.6235 GB, free: 15.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-05/0.8557, allocations: 48 kB / 0.6236 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001021/0.8558, allocations: 108.1 kB / 0.6237 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/0.8581, allocations: 0.8052 MB / 0.6244 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/0.861, allocations: 0.9942 MB / 0.6254 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005659/0.8666, allocations: 4.203 MB / 0.6295 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003201/0.8699, allocations: 283.6 kB / 0.6298 GB, free: 9.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004645/0.8703, allocations: 272 kB / 0.6301 GB, free: 9.117 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 457 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (531): * Single equations (assignments): 527 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00209/0.8724, allocations: 1.372 MB / 0.6314 GB, free: 7.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000388/0.8728, allocations: 241 kB / 0.6316 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003799/0.8766, allocations: 1.849 MB / 0.6334 GB, free: 5.629 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.8767, allocations: 12 kB / 0.6334 GB, free: 5.617 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.8767, allocations: 7.938 kB / 0.6334 GB, free: 5.609 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.8767, allocations: 3.984 kB / 0.6335 GB, free: 5.605 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009262/0.886, allocations: 4.801 MB / 0.6381 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.886, allocations: 4 kB / 0.6381 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006702/0.8867, allocations: 143.8 kB / 0.6383 GB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/0.8887, allocations: 0.645 MB / 0.6389 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.9e-05/0.8888, allocations: 16 kB / 0.6389 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00486/0.8937, allocations: 3.733 MB / 0.6426 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.8937, allocations: 8.094 kB / 0.6426 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00605/0.8998, allocations: 3.774 MB / 0.6463 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.9008, allocations: 301.9 kB / 0.6466 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/0.9012, allocations: 20 kB / 0.6466 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.9022, allocations: 67.89 kB / 0.6466 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.9024, allocations: 59.83 kB / 0.6467 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.014e-05/0.9025, allocations: 32.05 kB / 0.6467 GB, free: 7.715 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003331/0.9058, allocations: 1.77 MB / 0.6485 GB, free: 5.938 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.9058, allocations: 0 / 0.6485 GB, free: 5.938 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003801/0.9096, allocations: 0.6523 MB / 0.6491 GB, free: 5.285 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006343/0.916, allocations: 4.71 MB / 0.6537 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005912/0.922, allocations: 3.416 MB / 0.657 GB, free: 13.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.922, allocations: 0 / 0.657 GB, free: 13.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.9233, allocations: 0.9332 MB / 0.6579 GB, free: 12.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.9247, allocations: 232.9 kB / 0.6582 GB, free: 11.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2543/1.179, allocations: 89.86 MB / 0.7459 GB, free: 61.08 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001804/1.181, allocations: 2.237 MB / 0.7481 GB, free: 60.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003124/1.184, allocations: 1.399 MB / 0.7495 GB, free: 60.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/1.185, allocations: 1.05 MB / 0.7505 GB, free: 60.23 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/1.185, allocations: 0 / 0.7505 GB, free: 60.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07891/1.264, allocations: 48.79 MB / 0.7981 GB, free: 27.36 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001609/1.264, allocations: 209.6 kB / 0.7983 GB, free: 27.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.382/4.646, allocations: 3.375 kB / 0.7983 GB, free: 27.11 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat