Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002247/0.002247, allocations: 181.9 kB / 16.4 MB, free: 5.723 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.987/1.987, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001144/0.001144, allocations: 92.19 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005148/0.0005148, allocations: 15.98 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3322, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.4848, allocations: 90.57 MB / 465.2 MB, free: 6.035 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.4851, allocations: 87.95 kB / 465.3 MB, free: 5.949 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5224/1.008, allocations: 57.69 MB / 0.5107 GB, free: 93.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.108e-06/1.008, allocations: 3.797 kB / 0.5107 GB, free: 93.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001225/1.008, allocations: 45.69 kB / 0.5108 GB, free: 93.83 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.01018/1.018, allocations: 2.663 MB / 0.5134 GB, free: 92.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/1.018, allocations: 11.75 kB / 0.5134 GB, free: 92.53 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001819/1.02, allocations: 490 kB / 0.5138 GB, free: 92.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01514/1.035, allocations: 1.966 MB / 0.5158 GB, free: 92.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01251/1.048, allocations: 3.306 MB / 0.519 GB, free: 91.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/1.048, allocations: 182.3 kB / 0.5192 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001383/1.049, allocations: 241.8 kB / 0.5194 GB, free: 91.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01636/1.066, allocations: 6.805 MB / 0.526 GB, free: 87.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/1.066, allocations: 54.73 kB / 0.5261 GB, free: 87.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005677/1.066, allocations: 117.7 kB / 0.5262 GB, free: 87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/1.068, allocations: 0.7144 MB / 0.5269 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01541/1.083, allocations: 5.84 MB / 0.5326 GB, free: 80.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04252/1.126, allocations: 33.39 MB / 0.5652 GB, free: 46.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007048/1.133, allocations: 2.294 MB / 0.5675 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/1.133, allocations: 19.62 kB / 0.5675 GB, free: 43.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/1.133, allocations: 42.5 kB / 0.5675 GB, free: 43.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.719e-06/1.133, allocations: 0 / 0.5675 GB, free: 43.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.03289/1.166, allocations: 8.749 MB / 0.5761 GB, free: 34.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/1.166, allocations: 140.5 kB / 0.5762 GB, free: 34.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005833/1.172, allocations: 2.554 MB / 0.5787 GB, free: 31.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003122/1.172, allocations: 37.7 kB / 0.5787 GB, free: 31.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/1.174, allocations: 2.07 MB / 0.5808 GB, free: 29.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006984/1.175, allocations: 438 kB / 0.5812 GB, free: 29.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004806/1.175, allocations: 84 kB / 0.5813 GB, free: 29.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003007/1.176, allocations: 0.4926 MB / 0.5817 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00379/1.179, allocations: 1.414 MB / 0.5831 GB, free: 27.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005574/1.185, allocations: 4.212 MB / 0.5872 GB, free: 21.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005818/1.191, allocations: 2.399 MB / 0.5896 GB, free: 19.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.737e-05/1.191, allocations: 28 kB / 0.5896 GB, free: 19.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01765/1.209, allocations: 6.025 MB / 0.5955 GB, free: 13.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.384e-05/1.209, allocations: 56.02 kB / 0.5955 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/1.209, allocations: 100 kB / 0.5956 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00402/1.213, allocations: 0.8006 MB / 0.5964 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005877/1.219, allocations: 0.998 MB / 0.5974 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008497/1.227, allocations: 4.207 MB / 0.6015 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005098/1.233, allocations: 283.5 kB / 0.6018 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009349/1.234, allocations: 275.9 kB / 0.602 GB, free: 6.465 MB / 378.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.003193/1.237, allocations: 1.377 MB / 0.6034 GB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006011/1.237, allocations: 233 kB / 0.6036 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006365/1.244, allocations: 1.849 MB / 0.6054 GB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.016e-05/1.244, allocations: 12 kB / 0.6054 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/1.244, allocations: 4 kB / 0.6054 GB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/1.244, allocations: 3.984 kB / 0.6054 GB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/1.259, allocations: 4.798 MB / 0.6101 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.037e-05/1.259, allocations: 7.938 kB / 0.6101 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/1.261, allocations: 143.9 kB / 0.6103 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004044/1.265, allocations: 0.6327 MB / 0.6109 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002506/1.265, allocations: 20 kB / 0.6109 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008731/1.274, allocations: 3.729 MB / 0.6145 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/1.274, allocations: 4.406 kB / 0.6145 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/1.285, allocations: 3.776 MB / 0.6182 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/1.286, allocations: 453.7 kB / 0.6187 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004175/1.287, allocations: 19.97 kB / 0.6187 GB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/1.288, allocations: 75.84 kB / 0.6187 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/1.289, allocations: 59.94 kB / 0.6188 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.289, allocations: 28 kB / 0.6188 GB, free: 4.949 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004886/1.294, allocations: 1.782 MB / 0.6206 GB, free: 3.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.294, allocations: 0 / 0.6206 GB, free: 3.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004999/1.299, allocations: 0.652 MB / 0.6212 GB, free: 2.512 MB / 394.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.01137/1.31, allocations: 4.711 MB / 0.6258 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009526/1.32, allocations: 3.412 MB / 0.6291 GB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/1.32, allocations: 0 / 0.6291 GB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/1.322, allocations: 0.9354 MB / 0.6301 GB, free: 9.391 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/1.324, allocations: 223.4 kB / 0.6303 GB, free: 9.172 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3513/1.675, allocations: 90.23 MB / 0.7184 GB, free: 69.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003327/1.679, allocations: 2.241 MB / 0.7206 GB, free: 68.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002327/1.681, allocations: 1.089 MB / 0.7216 GB, free: 68.47 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/1.681, allocations: 1.031 kB / 0.7216 GB, free: 68.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.59/5.271, allocations: 61.3 MB / 0.7815 GB, free: 26.42 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat