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.001318/0.001318, allocations: 181 kB / 17.01 MB, free: 5.121 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.395/1.395, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008321/0.0008321, allocations: 88.98 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.000245, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2115, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1001/0.3116, allocations: 90.56 MB / 466.5 MB, free: 6.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.3119, allocations: 103.9 kB / 466.6 MB, free: 5.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.308/0.6199, allocations: 57.69 MB / 0.512 GB, free: 94.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6199, allocations: 0 / 0.512 GB, free: 94.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.567e-05/0.62, allocations: 42.88 kB / 0.512 GB, free: 94.13 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.004497/0.6245, allocations: 2.67 MB / 0.5146 GB, free: 92.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.6246, allocations: 10.69 kB / 0.5146 GB, free: 92.83 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005584/0.6251, allocations: 490.2 kB / 0.5151 GB, free: 92.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006737/0.6319, allocations: 1.966 MB / 0.517 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006985/0.6389, allocations: 3.307 MB / 0.5203 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.639, allocations: 176.7 kB / 0.5204 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000445/0.6394, allocations: 243.8 kB / 0.5207 GB, free: 91.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007527/0.647, allocations: 6.806 MB / 0.5273 GB, free: 87.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.591e-05/0.6471, allocations: 47.53 kB / 0.5273 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.6474, allocations: 120.9 kB / 0.5275 GB, free: 87.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006671/0.6481, allocations: 0.7139 MB / 0.5282 GB, free: 86.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008881/0.657, allocations: 5.843 MB / 0.5339 GB, free: 80.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02179/0.6788, allocations: 33.39 MB / 0.5665 GB, free: 46.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003541/0.6824, allocations: 2.293 MB / 0.5687 GB, free: 43.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.253e-05/0.6824, allocations: 19.23 kB / 0.5687 GB, free: 43.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.6824, allocations: 46.5 kB / 0.5688 GB, free: 43.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 2.965e-06/0.6825, allocations: 0 / 0.5688 GB, free: 43.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01599/0.6984, allocations: 8.743 MB / 0.5773 GB, free: 34.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.6985, allocations: 140.5 kB / 0.5774 GB, free: 34.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/0.7017, allocations: 2.558 MB / 0.5799 GB, free: 32.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.41e-05/0.7018, allocations: 33.7 kB / 0.58 GB, free: 31.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.7028, allocations: 2.077 MB / 0.582 GB, free: 29.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.7031, allocations: 440.6 kB / 0.5824 GB, free: 29.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.7032, allocations: 84 kB / 0.5825 GB, free: 29.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.7034, allocations: 0.4918 MB / 0.583 GB, free: 28.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.7052, allocations: 1.414 MB / 0.5844 GB, free: 27.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002833/0.708, allocations: 4.212 MB / 0.5885 GB, free: 21.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002507/0.7105, allocations: 2.4 MB / 0.5908 GB, free: 19.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.801e-05/0.7106, allocations: 35.94 kB / 0.5909 GB, free: 19.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.007859/0.7184, allocations: 6.076 MB / 0.5968 GB, free: 13.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.088e-05/0.7185, allocations: 51.95 kB / 0.5968 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.265e-05/0.7186, allocations: 100 kB / 0.5969 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001884/0.7205, allocations: 0.8092 MB / 0.5977 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002283/0.7228, allocations: 0.9981 MB / 0.5987 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/0.7269, allocations: 4.199 MB / 0.6028 GB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/0.7295, allocations: 287.6 kB / 0.6031 GB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002531/0.7298, allocations: 283 kB / 0.6033 GB, free: 6.477 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.001459/0.7312, allocations: 1.365 MB / 0.6047 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002634/0.7315, allocations: 232.9 kB / 0.6049 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/0.7346, allocations: 1.857 MB / 0.6067 GB, free: 3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.7346, allocations: 12 kB / 0.6067 GB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.7346, allocations: 8 kB / 0.6067 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.7347, allocations: 3.984 kB / 0.6067 GB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007367/0.742, allocations: 4.798 MB / 0.6114 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.7421, allocations: 0 / 0.6114 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005687/0.7426, allocations: 135.8 kB / 0.6116 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/0.7445, allocations: 0.6405 MB / 0.6122 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.986e-05/0.7446, allocations: 23.98 kB / 0.6122 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00452/0.7491, allocations: 3.732 MB / 0.6158 GB, free: 9.441 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.7491, allocations: 0 / 0.6158 GB, free: 9.441 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005338/0.7545, allocations: 3.784 MB / 0.6195 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.7556, allocations: 453.8 kB / 0.62 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000211/0.7558, allocations: 16 kB / 0.62 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008753/0.7567, allocations: 71.64 kB / 0.6201 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.7568, allocations: 57.06 kB / 0.6201 GB, free: 4.996 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.269e-05/0.7569, allocations: 31.98 kB / 0.6201 GB, free: 4.965 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002564/0.7595, allocations: 1.786 MB / 0.6219 GB, free: 3.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7595, allocations: 0 / 0.6219 GB, free: 3.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003283/0.7628, allocations: 0.6557 MB / 0.6225 GB, free: 2.52 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.00574/0.7685, allocations: 4.707 MB / 0.6271 GB, free: 13.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004839/0.7734, allocations: 3.41 MB / 0.6305 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.7734, allocations: 0 / 0.6305 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.7745, allocations: 0.9275 MB / 0.6314 GB, free: 9.414 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.7756, allocations: 242.9 kB / 0.6316 GB, free: 9.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1935/0.969, allocations: 89.93 MB / 0.7194 GB, free: 69.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.9706, allocations: 2.244 MB / 0.7216 GB, free: 69.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002734/0.9734, allocations: 1.403 MB / 0.723 GB, free: 69.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009764/0.9743, allocations: 1.049 MB / 0.724 GB, free: 69.05 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/0.9743, allocations: 0 / 0.724 GB, free: 69.05 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05774/1.032, allocations: 48.89 MB / 0.7717 GB, free: 37.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/1.032, allocations: 217.8 kB / 0.7719 GB, free: 36.85 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.933/3.965, allocations: 0 / 0.7719 GB, free: 36.85 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