Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.293/1.293, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008177/0.0008177, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.537e-05/2.554e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07587/0.07591, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.278/0.354, allocations: 90.47 MB / 460.6 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.3542, allocations: 90.94 kB / 460.7 MB, free: 2.957 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1452/0.4994, allocations: 57.7 MB / 0.5062 GB, free: 10.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4994, allocations: 0 / 0.5062 GB, free: 10.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.878e-05/0.4995, allocations: 44 kB / 0.5063 GB, free: 10.04 MB / 394.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.004298/0.5038, allocations: 2.546 MB / 0.5088 GB, free: 7.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.5039, allocations: 16.03 kB / 0.5088 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006048/0.5045, allocations: 489.8 kB / 0.5092 GB, free: 6.938 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007694/0.5122, allocations: 1.966 MB / 0.5112 GB, free: 4.965 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007789/0.52, allocations: 3.289 MB / 0.5144 GB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.5202, allocations: 184.5 kB / 0.5145 GB, free: 1.441 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006242/0.5208, allocations: 231.9 kB / 0.5148 GB, free: 1.215 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.531, allocations: 6.735 MB / 0.5213 GB, free: 9.676 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.038e-05/0.5312, allocations: 47.53 kB / 0.5214 GB, free: 9.629 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003115/0.5315, allocations: 123.9 kB / 0.5215 GB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008857/0.5324, allocations: 0.715 MB / 0.5222 GB, free: 8.797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00901/0.5414, allocations: 5.689 MB / 0.5278 GB, free: 3.098 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2105/0.752, allocations: 33.4 MB / 0.5604 GB, free: 78.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004414/0.7564, allocations: 2.285 MB / 0.5626 GB, free: 77.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.7576, allocations: 1.013 MB / 0.5636 GB, free: 77.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.167e-05/0.7577, allocations: 13.69 kB / 0.5636 GB, free: 77.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.7577, allocations: 43.53 kB / 0.5636 GB, free: 77.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=98): time 2.945e-06/0.7577, allocations: 1.125 kB / 0.5637 GB, free: 77.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=106): time 0.0147/0.7725, allocations: 7.04 MB / 0.5705 GB, free: 75.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.7725, allocations: 140.7 kB / 0.5707 GB, free: 75.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002718/0.7753, allocations: 2.506 MB / 0.5731 GB, free: 75.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.7754, allocations: 36.7 kB / 0.5731 GB, free: 75.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008195/0.7762, allocations: 2.08 MB / 0.5752 GB, free: 74.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.7765, allocations: 434.6 kB / 0.5756 GB, free: 73.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.7766, allocations: 86.88 kB / 0.5757 GB, free: 73.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.7768, allocations: 0.4897 MB / 0.5761 GB, free: 73.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.7784, allocations: 1.352 MB / 0.5775 GB, free: 73.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002486/0.7809, allocations: 4.163 MB / 0.5815 GB, free: 69.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002603/0.7835, allocations: 2.374 MB / 0.5839 GB, free: 68.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.951e-05/0.7835, allocations: 28.44 kB / 0.5839 GB, free: 68.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.008611/0.7922, allocations: 5.965 MB / 0.5897 GB, free: 66.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.644e-05/0.7923, allocations: 47.19 kB / 0.5898 GB, free: 66.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.111e-05/0.7924, allocations: 100.5 kB / 0.5898 GB, free: 66.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/0.7945, allocations: 0.8041 MB / 0.5906 GB, free: 66.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.7974, allocations: 1.002 MB / 0.5916 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00457/0.802, allocations: 4.107 MB / 0.5956 GB, free: 64.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003392/0.8054, allocations: 284.2 kB / 0.5959 GB, free: 64.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006235/0.8061, allocations: 270.4 kB / 0.5961 GB, free: 64.43 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 () * 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.0005607/0.8066, allocations: 446.2 kB / 0.5966 GB, free: 64.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003804/0.807, allocations: 237.4 kB / 0.5968 GB, free: 63.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00338/0.8104, allocations: 1.839 MB / 0.5986 GB, free: 63.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/0.8104, allocations: 22.98 kB / 0.5986 GB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.8104, allocations: 2.844 kB / 0.5986 GB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.8105, allocations: 7.219 kB / 0.5986 GB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007108/0.8176, allocations: 4.784 MB / 0.6033 GB, free: 61.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.8176, allocations: 4.062 kB / 0.6033 GB, free: 61.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005627/0.8182, allocations: 139 kB / 0.6034 GB, free: 61.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/0.82, allocations: 0.6405 MB / 0.6041 GB, free: 61.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.069e-05/0.82, allocations: 20.17 kB / 0.6041 GB, free: 61.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/0.8237, allocations: 3.625 MB / 0.6076 GB, free: 59.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.8238, allocations: 10.19 kB / 0.6076 GB, free: 59.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004749/0.8285, allocations: 3.751 MB / 0.6113 GB, free: 58.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009246/0.8295, allocations: 446.6 kB / 0.6117 GB, free: 57.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.8297, allocations: 19.02 kB / 0.6117 GB, free: 57.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009042/0.8306, allocations: 74.94 kB / 0.6118 GB, free: 57.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.8307, allocations: 51.53 kB / 0.6119 GB, free: 57.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.8308, allocations: 40 kB / 0.6119 GB, free: 57.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002343/0.8332, allocations: 1.731 MB / 0.6136 GB, free: 56.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8332, allocations: 0 / 0.6136 GB, free: 56.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003598/0.8368, allocations: 0.6545 MB / 0.6142 GB, free: 56.07 MB / 410.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.005669/0.8425, allocations: 4.674 MB / 0.6188 GB, free: 51.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005263/0.8478, allocations: 3.346 MB / 0.6221 GB, free: 48.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.8479, allocations: 0 / 0.6221 GB, free: 48.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.849, allocations: 0.9209 MB / 0.623 GB, free: 48.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.8506, allocations: 240.1 kB / 0.6232 GB, free: 47.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.863, allocations: 5.267 MB / 0.6283 GB, free: 43.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002056/0.8651, allocations: 2.248 MB / 0.6305 GB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003086/0.8682, allocations: 1.397 MB / 0.6319 GB, free: 40.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/0.8695, allocations: 1.051 MB / 0.6329 GB, free: 39.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.243e-06/0.8695, allocations: 0 / 0.6329 GB, free: 39.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06707/0.9366, allocations: 48.99 MB / 0.6808 GB, free: 8.297 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/0.9369, allocations: 180.1 kB / 0.6809 GB, free: 8.074 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.086/4.023, allocations: 8 kB / 0.6809 GB, free: 8.066 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat