Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001055/0.001055, allocations: 198.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008813/0.0008814, allocations: 110.2 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002313, allocations: 8 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2264, allocations: 51.48 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.3487, allocations: 92.49 MB / 0.4902 GB, free: 14.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.349, allocations: 91.95 kB / 0.4903 GB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3534/0.7024, allocations: 59.14 MB / 0.5481 GB, free: 62.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.7025, allocations: 0 / 0.5481 GB, free: 62.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001277/0.7026, allocations: 47.94 kB / 0.5481 GB, free: 62.79 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.007858/0.7105, allocations: 2.68 MB / 0.5507 GB, free: 60.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.7106, allocations: 15.97 kB / 0.5507 GB, free: 60.04 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001884/0.7125, allocations: 489.8 kB / 0.5512 GB, free: 59.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00819/0.7207, allocations: 1.966 MB / 0.5531 GB, free: 57.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007468/0.7282, allocations: 2.639 MB / 0.5557 GB, free: 54.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.7284, allocations: 184.5 kB / 0.5559 GB, free: 54.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.7298, allocations: 239.8 kB / 0.5561 GB, free: 54.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/0.7426, allocations: 6.818 MB / 0.5628 GB, free: 46.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001689/0.7428, allocations: 43.62 kB / 0.5628 GB, free: 46.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00101/0.7439, allocations: 119.9 kB / 0.5629 GB, free: 46.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009494/0.7448, allocations: 0.715 MB / 0.5636 GB, free: 45.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01003/0.7549, allocations: 5.837 MB / 0.5693 GB, free: 40.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02955/0.7845, allocations: 33.38 MB / 0.6019 GB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003854/0.7884, allocations: 2.29 MB / 0.6042 GB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.741e-05/0.7885, allocations: 19.97 kB / 0.6042 GB, free: 3.129 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.7885, allocations: 46.48 kB / 0.6042 GB, free: 3.074 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.908e-06/0.7885, allocations: 0 / 0.6042 GB, free: 3.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01901/0.8075, allocations: 8.673 MB / 0.6127 GB, free: 10.2 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.8076, allocations: 140.5 kB / 0.6128 GB, free: 10.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003821/0.8115, allocations: 2.553 MB / 0.6153 GB, free: 7.465 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/0.8117, allocations: 37.7 kB / 0.6154 GB, free: 7.422 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001229/0.8129, allocations: 2.071 MB / 0.6174 GB, free: 5.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004243/0.8133, allocations: 446.6 kB / 0.6178 GB, free: 4.879 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.8135, allocations: 84 kB / 0.6179 GB, free: 4.797 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002494/0.8138, allocations: 495.6 kB / 0.6184 GB, free: 4.305 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002046/0.8158, allocations: 1.422 MB / 0.6197 GB, free: 2.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003569/0.8194, allocations: 4.212 MB / 0.6239 GB, free: 13.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003125/0.8225, allocations: 2.393 MB / 0.6262 GB, free: 10.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.834e-05/0.8226, allocations: 31.95 kB / 0.6262 GB, free: 10.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.009894/0.8325, allocations: 6.088 MB / 0.6322 GB, free: 4.719 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.099e-05/0.8326, allocations: 48 kB / 0.6322 GB, free: 4.672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.988e-05/0.8327, allocations: 100 kB / 0.6323 GB, free: 4.574 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.8348, allocations: 0.8047 MB / 0.6331 GB, free: 3.766 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/0.8375, allocations: 0.998 MB / 0.6341 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005423/0.8429, allocations: 4.2 MB / 0.6382 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/0.8463, allocations: 283.6 kB / 0.6384 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003958/0.8467, allocations: 276 kB / 0.6387 GB, free: 13.88 MB / 426.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.00215/0.8489, allocations: 1.372 MB / 0.64 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.8492, allocations: 233 kB / 0.6403 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/0.8529, allocations: 1.853 MB / 0.6421 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.373e-05/0.8529, allocations: 12 kB / 0.6421 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.853, allocations: 4 kB / 0.6421 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.853, allocations: 3.984 kB / 0.6421 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008429/0.8614, allocations: 4.817 MB / 0.6468 GB, free: 5.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.8614, allocations: 0 / 0.6468 GB, free: 5.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000594/0.862, allocations: 139.8 kB / 0.6469 GB, free: 5.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001898/0.8639, allocations: 0.6404 MB / 0.6476 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.325e-05/0.864, allocations: 19.98 kB / 0.6476 GB, free: 4.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/0.8687, allocations: 3.737 MB / 0.6512 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8687, allocations: 384 / 0.6512 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005615/0.8743, allocations: 3.772 MB / 0.6549 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008008/0.8752, allocations: 305.8 kB / 0.6552 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/0.8754, allocations: 16 kB / 0.6552 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008879/0.8763, allocations: 75.8 kB / 0.6553 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.8764, allocations: 55.98 kB / 0.6553 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.405e-05/0.8765, allocations: 35.92 kB / 0.6554 GB, free: 12.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002767/0.8793, allocations: 1.773 MB / 0.6571 GB, free: 10.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8793, allocations: 0 / 0.6571 GB, free: 10.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003025/0.8823, allocations: 0.6523 MB / 0.6577 GB, free: 10.04 MB / 442.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.005792/0.8881, allocations: 4.71 MB / 0.6623 GB, free: 5.266 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005409/0.8936, allocations: 3.416 MB / 0.6657 GB, free: 1.859 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.8936, allocations: 4 kB / 0.6657 GB, free: 1.855 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.8947, allocations: 0.9238 MB / 0.6666 GB, free: 0.918 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.896, allocations: 235.5 kB / 0.6668 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2327/1.129, allocations: 89.87 MB / 0.7546 GB, free: 46.97 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/1.131, allocations: 2.232 MB / 0.7568 GB, free: 46.22 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003036/1.134, allocations: 1.403 MB / 0.7581 GB, free: 46.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/1.135, allocations: 1.051 MB / 0.7592 GB, free: 46.11 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/1.135, allocations: 0 / 0.7592 GB, free: 46.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06088/1.196, allocations: 48.78 MB / 0.8068 GB, free: 12.13 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/1.196, allocations: 208.1 kB / 0.807 GB, free: 11.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.274/4.47, allocations: 0 / 0.807 GB, free: 11.9 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat