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.0013/0.0013, allocations: 196 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008818/0.0008818, allocations: 87.14 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.565e-05/4.585e-05, allocations: 4 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1319, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4231/0.555, allocations: 92.42 MB / 494.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.5553, allocations: 83.64 kB / 494.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1584/0.7138, allocations: 59.17 MB / 0.5408 GB, free: 3.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.7138, allocations: 0 / 0.5408 GB, free: 3.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001013/0.7139, allocations: 44 kB / 0.5409 GB, free: 3.137 MB / 410.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.007947/0.7219, allocations: 2.552 MB / 0.5434 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.722, allocations: 8.031 kB / 0.5434 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001559/0.7235, allocations: 489.8 kB / 0.5438 GB, free: 40 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009107/0.7327, allocations: 1.974 MB / 0.5458 GB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007854/0.7406, allocations: 2.629 MB / 0.5483 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.7409, allocations: 188.6 kB / 0.5485 GB, free: 11.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00145/0.7423, allocations: 231.9 kB / 0.5487 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01238/0.7547, allocations: 6.735 MB / 0.5553 GB, free: 3.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.7549, allocations: 51.52 kB / 0.5554 GB, free: 3.379 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003966/0.7553, allocations: 115.9 kB / 0.5555 GB, free: 3.266 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/0.7563, allocations: 0.715 MB / 0.5562 GB, free: 2.555 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.7666, allocations: 5.697 MB / 0.5617 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3253/1.092, allocations: 33.37 MB / 0.5943 GB, free: 70.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004037/1.096, allocations: 2.277 MB / 0.5965 GB, free: 69.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/1.097, allocations: 1.005 MB / 0.5975 GB, free: 69.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/1.097, allocations: 14.3 kB / 0.5975 GB, free: 69.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/1.097, allocations: 51.33 kB / 0.5976 GB, free: 69.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=98): time 3.737e-06/1.097, allocations: 0 / 0.5976 GB, free: 69.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=106): time 0.01556/1.113, allocations: 6.968 MB / 0.6044 GB, free: 67.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/1.113, allocations: 142.7 kB / 0.6045 GB, free: 67.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003579/1.117, allocations: 2.491 MB / 0.6069 GB, free: 67.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/1.117, allocations: 39.77 kB / 0.607 GB, free: 67.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/1.118, allocations: 2.074 MB / 0.609 GB, free: 66.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004016/1.119, allocations: 441.1 kB / 0.6094 GB, free: 65.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/1.119, allocations: 88.84 kB / 0.6095 GB, free: 65.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002408/1.119, allocations: 495.7 kB / 0.61 GB, free: 65.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/1.121, allocations: 1.36 MB / 0.6113 GB, free: 65.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002888/1.124, allocations: 4.157 MB / 0.6154 GB, free: 61.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003104/1.127, allocations: 2.372 MB / 0.6177 GB, free: 61.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.55e-05/1.127, allocations: 27.44 kB / 0.6177 GB, free: 61.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01242/1.139, allocations: 5.968 MB / 0.6235 GB, free: 61.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.139, allocations: 49.31 kB / 0.6236 GB, free: 61.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002164/1.14, allocations: 101 kB / 0.6237 GB, free: 61.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002638/1.142, allocations: 0.8079 MB / 0.6245 GB, free: 61.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/1.146, allocations: 0.9948 MB / 0.6255 GB, free: 61.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006871/1.153, allocations: 4.098 MB / 0.6295 GB, free: 59.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004581/1.157, allocations: 288.5 kB / 0.6297 GB, free: 59.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/1.159, allocations: 273.8 kB / 0.63 GB, free: 59.71 MB / 442.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 () * 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.0008283/1.159, allocations: 441.5 kB / 0.6304 GB, free: 59.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008114/1.16, allocations: 228.4 kB / 0.6306 GB, free: 59.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004473/1.165, allocations: 1.848 MB / 0.6324 GB, free: 59.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-05/1.165, allocations: 15.03 kB / 0.6324 GB, free: 59.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/1.165, allocations: 8.156 kB / 0.6325 GB, free: 59.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-05/1.165, allocations: 9 kB / 0.6325 GB, free: 59.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/1.177, allocations: 4.806 MB / 0.6372 GB, free: 57.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/1.177, allocations: 2.391 kB / 0.6372 GB, free: 57.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007513/1.178, allocations: 136.7 kB / 0.6373 GB, free: 57.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/1.18, allocations: 0.6345 MB / 0.6379 GB, free: 57.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/1.18, allocations: 19.75 kB / 0.6379 GB, free: 57.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00528/1.186, allocations: 3.633 MB / 0.6415 GB, free: 55.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.186, allocations: 3.953 kB / 0.6415 GB, free: 55.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005918/1.192, allocations: 3.749 MB / 0.6451 GB, free: 53.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/1.193, allocations: 301.5 kB / 0.6454 GB, free: 53.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/1.193, allocations: 20.31 kB / 0.6454 GB, free: 53.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009469/1.194, allocations: 69.95 kB / 0.6455 GB, free: 53.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/1.194, allocations: 57.23 kB / 0.6456 GB, free: 53.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.588e-05/1.194, allocations: 27.97 kB / 0.6456 GB, free: 53.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002713/1.197, allocations: 1.714 MB / 0.6473 GB, free: 52.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.197, allocations: 4 kB / 0.6473 GB, free: 52.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003908/1.201, allocations: 0.6561 MB / 0.6479 GB, free: 52.9 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 () * 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.005443/1.206, allocations: 4.687 MB / 0.6525 GB, free: 50.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005395/1.212, allocations: 3.337 MB / 0.6558 GB, free: 49.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/1.212, allocations: 0 / 0.6558 GB, free: 49.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/1.213, allocations: 0.9263 MB / 0.6567 GB, free: 48.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/1.214, allocations: 232.9 kB / 0.6569 GB, free: 48.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/1.228, allocations: 5.25 MB / 0.662 GB, free: 46.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002047/1.23, allocations: 2.24 MB / 0.6642 GB, free: 45.89 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003319/1.233, allocations: 1.398 MB / 0.6656 GB, free: 45.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/1.235, allocations: 1.051 MB / 0.6666 GB, free: 44.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.463e-06/1.235, allocations: 0 / 0.6666 GB, free: 44.96 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08063/1.315, allocations: 48.9 MB / 0.7143 GB, free: 10.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.315, allocations: 186 kB / 0.7145 GB, free: 10.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.631/4.946, allocations: 0 / 0.7145 GB, free: 10.08 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