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.001288/0.001289, allocations: 198.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009643/0.0009643, allocations: 102.7 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.035e-05, allocations: 8 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 51.47 MB / 395.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3236/0.4245, allocations: 91.75 MB / 487 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.4248, allocations: 89.02 kB / 487.1 MB, free: 1.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1542/0.579, allocations: 58.32 MB / 0.5326 GB, free: 11.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5791, allocations: 0 / 0.5326 GB, free: 11.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.917e-05/0.5792, allocations: 48 kB / 0.5327 GB, free: 11.81 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.006409/0.5856, allocations: 2.556 MB / 0.5352 GB, free: 9.199 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.5857, allocations: 8.031 kB / 0.5352 GB, free: 9.191 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008967/0.5947, allocations: 1.974 MB / 0.5371 GB, free: 7.211 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007753/0.6025, allocations: 2.62 MB / 0.5397 GB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.6026, allocations: 79.55 kB / 0.5397 GB, free: 4.473 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009636/0.6036, allocations: 136 kB / 0.5399 GB, free: 4.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006615/0.6102, allocations: 3.916 MB / 0.5437 GB, free: 428 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00961/0.6199, allocations: 6.203 MB / 0.5498 GB, free: 9.422 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001023/0.62, allocations: 43.53 kB / 0.5498 GB, free: 9.379 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002953/0.6203, allocations: 24 kB / 0.5498 GB, free: 9.355 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000985/0.6213, allocations: 0.7189 MB / 0.5505 GB, free: 8.637 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.278/0.8993, allocations: 32.03 MB / 0.5818 GB, free: 75.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002137/0.9015, allocations: 2.016 MB / 0.5838 GB, free: 74.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.9026, allocations: 0.9971 MB / 0.5847 GB, free: 74.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-05/0.9027, allocations: 11.42 kB / 0.5848 GB, free: 74.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.9027, allocations: 45.16 kB / 0.5848 GB, free: 74.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=98): time 3.406e-06/0.9027, allocations: 3.609 kB / 0.5848 GB, free: 74.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=106): time 0.01383/0.9166, allocations: 8.149 MB / 0.5928 GB, free: 72.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.9167, allocations: 138.1 kB / 0.5929 GB, free: 72.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.9193, allocations: 2.153 MB / 0.595 GB, free: 72.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001561/0.9195, allocations: 28.58 kB / 0.595 GB, free: 72.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009186/0.9204, allocations: 2.131 MB / 0.5971 GB, free: 71.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003497/0.9208, allocations: 433.2 kB / 0.5975 GB, free: 71.13 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.9209, allocations: 0 / 0.5975 GB, free: 71.13 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.9212, allocations: 0.5448 MB / 0.598 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.9228, allocations: 1.313 MB / 0.5993 GB, free: 70.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003075/0.9259, allocations: 4.228 MB / 0.6035 GB, free: 66.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/0.929, allocations: 2.349 MB / 0.6058 GB, free: 66.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.387e-05/0.929, allocations: 29.62 kB / 0.6058 GB, free: 66.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.00972/0.9388, allocations: 5.486 MB / 0.6111 GB, free: 66.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.9389, allocations: 50.78 kB / 0.6112 GB, free: 66.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.939, allocations: 104.6 kB / 0.6113 GB, free: 66.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002245/0.9412, allocations: 0.8102 MB / 0.6121 GB, free: 66.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/0.9442, allocations: 1.037 MB / 0.6131 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.9492, allocations: 3.968 MB / 0.617 GB, free: 65.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003704/0.9529, allocations: 201.7 kB / 0.6172 GB, free: 65.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007514/0.9537, allocations: 285.6 kB / 0.6174 GB, free: 65.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * 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 (555): * Single equations (assignments): 551 * 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.000688/0.9544, allocations: 364.5 kB / 0.6178 GB, free: 64.79 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004271/0.9587, allocations: 2.198 MB / 0.6199 GB, free: 64.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004324/0.9591, allocations: 212.4 kB / 0.6201 GB, free: 64.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/0.9629, allocations: 1.776 MB / 0.6219 GB, free: 63.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.73e-05/0.9629, allocations: 17.81 kB / 0.6219 GB, free: 63.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.963, allocations: 2.75 kB / 0.6219 GB, free: 63.72 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.963, allocations: 8.891 kB / 0.6219 GB, free: 63.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007292/0.9703, allocations: 4.309 MB / 0.6261 GB, free: 62.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.9703, allocations: 7.438 kB / 0.6261 GB, free: 62.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005952/0.9709, allocations: 135.4 kB / 0.6262 GB, free: 62.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.9727, allocations: 0.6398 MB / 0.6269 GB, free: 62.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.666e-05/0.9728, allocations: 7.203 kB / 0.6269 GB, free: 62.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004044/0.9769, allocations: 3.506 MB / 0.6303 GB, free: 60.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/0.9769, allocations: 3.672 kB / 0.6303 GB, free: 60.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005651/0.9826, allocations: 3.67 MB / 0.6339 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005566/0.9831, allocations: 274 kB / 0.6341 GB, free: 58.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002323/0.9834, allocations: 4.359 kB / 0.6341 GB, free: 58.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009062/0.9843, allocations: 59.72 kB / 0.6342 GB, free: 58.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.9845, allocations: 53.5 kB / 0.6342 GB, free: 58.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/0.9845, allocations: 28.03 kB / 0.6343 GB, free: 58.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002209/0.9868, allocations: 1.421 MB / 0.6357 GB, free: 57.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9868, allocations: 3.938 kB / 0.6357 GB, free: 57.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003537/0.9903, allocations: 0.5618 MB / 0.6362 GB, free: 57.86 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.005285/0.9956, allocations: 4.601 MB / 0.6407 GB, free: 55.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004581/1, allocations: 3.17 MB / 0.6438 GB, free: 54.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1, allocations: 0 / 0.6438 GB, free: 54.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009679/1.001, allocations: 0.8952 MB / 0.6447 GB, free: 54.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/1.003, allocations: 206.7 kB / 0.6449 GB, free: 53.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/1.013, allocations: 5.1 MB / 0.6499 GB, free: 52.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002096/1.015, allocations: 2.239 MB / 0.652 GB, free: 51.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003457/1.018, allocations: 1.445 MB / 0.6535 GB, free: 50.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.019, allocations: 1.05 MB / 0.6545 GB, free: 50.16 MB / 442.7 MB Notification: Performance of SimCode: time 1.182e-06/1.019, allocations: 0 / 0.6545 GB, free: 50.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08776/1.107, allocations: 45.12 MB / 0.6985 GB, free: 23.39 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/1.107, allocations: 147 kB / 0.6987 GB, free: 23.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.432/4.54, allocations: 0 / 0.6987 GB, free: 23.2 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