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.002282/0.002281, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.186/2.186, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001145/0.001145, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.232e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4483/0.5558, allocations: 90.48 MB / 459.7 MB, free: 2.883 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.5562, allocations: 85.95 kB / 459.7 MB, free: 2.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2603/0.8165, allocations: 57.7 MB / 0.5053 GB, free: 10.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.8166, allocations: 0 / 0.5053 GB, free: 10.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001408/0.8167, allocations: 44 kB / 0.5054 GB, free: 10.36 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.01008/0.8268, allocations: 2.546 MB / 0.5079 GB, free: 7.754 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.8269, allocations: 8.031 kB / 0.5079 GB, free: 7.746 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001853/0.8288, allocations: 485.8 kB / 0.5083 GB, free: 7.262 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01589/0.8447, allocations: 1.966 MB / 0.5102 GB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/0.8587, allocations: 3.306 MB / 0.5135 GB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002799/0.8591, allocations: 172.6 kB / 0.5136 GB, free: 1.758 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001422/0.8605, allocations: 231.9 kB / 0.5139 GB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01919/0.8797, allocations: 6.732 MB / 0.5204 GB, free: 9.996 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.8799, allocations: 47.52 kB / 0.5205 GB, free: 9.949 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006895/0.8806, allocations: 127.9 kB / 0.5206 GB, free: 9.824 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001764/0.8824, allocations: 0.7111 MB / 0.5213 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.9002, allocations: 5.695 MB / 0.5269 GB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3432/1.243, allocations: 33.39 MB / 0.5595 GB, free: 78.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0081/1.252, allocations: 2.281 MB / 0.5617 GB, free: 78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002643/1.254, allocations: 1.009 MB / 0.5627 GB, free: 77.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/1.254, allocations: 19.12 kB / 0.5627 GB, free: 77.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/1.255, allocations: 48.28 kB / 0.5627 GB, free: 77.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=98): time 5.751e-06/1.255, allocations: 0 / 0.5627 GB, free: 77.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=106): time 0.02886/1.283, allocations: 7.037 MB / 0.5696 GB, free: 76.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/1.284, allocations: 146.3 kB / 0.5698 GB, free: 75.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005659/1.289, allocations: 2.505 MB / 0.5722 GB, free: 75.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003321/1.29, allocations: 39.23 kB / 0.5722 GB, free: 75.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00179/1.291, allocations: 2.071 MB / 0.5743 GB, free: 74.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007193/1.292, allocations: 439.1 kB / 0.5747 GB, free: 74.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004366/1.293, allocations: 78.5 kB / 0.5748 GB, free: 74.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002762/1.293, allocations: 0.4962 MB / 0.5752 GB, free: 73.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003365/1.296, allocations: 1.355 MB / 0.5766 GB, free: 73.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005483/1.302, allocations: 4.153 MB / 0.5806 GB, free: 69.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005491/1.307, allocations: 2.372 MB / 0.5829 GB, free: 69.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/1.308, allocations: 29.12 kB / 0.583 GB, free: 69.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01838/1.326, allocations: 5.9 MB / 0.5887 GB, free: 67.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.594e-05/1.326, allocations: 51.97 kB / 0.5888 GB, free: 67.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/1.326, allocations: 102.5 kB / 0.5889 GB, free: 67.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004143/1.33, allocations: 0.8002 MB / 0.5897 GB, free: 67.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006025/1.336, allocations: 0.997 MB / 0.5906 GB, free: 67.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008419/1.345, allocations: 4.111 MB / 0.5946 GB, free: 65.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005506/1.351, allocations: 288.2 kB / 0.5949 GB, free: 65.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/1.352, allocations: 270.1 kB / 0.5952 GB, free: 65.03 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.0009166/1.353, allocations: 446 kB / 0.5956 GB, free: 64.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006333/1.353, allocations: 233.3 kB / 0.5958 GB, free: 64.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006323/1.359, allocations: 1.841 MB / 0.5976 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.736e-05/1.36, allocations: 16.97 kB / 0.5976 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/1.36, allocations: 0 / 0.5976 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.03e-05/1.36, allocations: 7.031 kB / 0.5976 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0161/1.376, allocations: 4.788 MB / 0.6023 GB, free: 62.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-05/1.376, allocations: 0 / 0.6023 GB, free: 62.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/1.377, allocations: 140.7 kB / 0.6025 GB, free: 62.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003731/1.381, allocations: 0.6435 MB / 0.6031 GB, free: 62.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002892/1.381, allocations: 19.92 kB / 0.6031 GB, free: 62.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007444/1.389, allocations: 3.626 MB / 0.6066 GB, free: 60.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.389, allocations: 4.062 kB / 0.6066 GB, free: 60.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009641/1.398, allocations: 3.771 MB / 0.6103 GB, free: 58.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.4, allocations: 441.8 kB / 0.6107 GB, free: 58.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006088/1.401, allocations: 19.25 kB / 0.6108 GB, free: 58.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00195/1.403, allocations: 64.7 kB / 0.6108 GB, free: 58.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003075/1.403, allocations: 61.62 kB / 0.6109 GB, free: 58.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/1.403, allocations: 29.92 kB / 0.6109 GB, free: 58.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004208/1.408, allocations: 1.73 MB / 0.6126 GB, free: 57.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.408, allocations: 0 / 0.6126 GB, free: 57.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005091/1.413, allocations: 0.6488 MB / 0.6132 GB, free: 56.95 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.009812/1.423, allocations: 4.689 MB / 0.6178 GB, free: 52.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007871/1.431, allocations: 3.335 MB / 0.6211 GB, free: 49.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.431, allocations: 0 / 0.6211 GB, free: 49.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/1.433, allocations: 0.9232 MB / 0.622 GB, free: 48.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/1.435, allocations: 232.6 kB / 0.6222 GB, free: 48.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.452, allocations: 5.561 MB / 0.6276 GB, free: 43.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/1.455, allocations: 2.24 MB / 0.6298 GB, free: 42.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002297/1.458, allocations: 1.09 MB / 0.6309 GB, free: 41.11 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.458, allocations: 0 / 0.6309 GB, free: 41.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.059/5.517, allocations: 61.08 MB / 0.6905 GB, free: 104.1 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