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.001232/0.001232, allocations: 178 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009337/0.0009335, allocations: 90.22 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.011e-05/2.014e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09668, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3461/0.4428, allocations: 90.04 MB / 453.2 MB, free: 5.766 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.4432, allocations: 87.83 kB / 453.3 MB, free: 5.723 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1511/0.5943, allocations: 56.83 MB / 0.4982 GB, free: 2.238 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5943, allocations: 0 / 0.4982 GB, free: 2.238 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.562e-05/0.5944, allocations: 40 kB / 0.4982 GB, free: 2.199 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.007196/0.6016, allocations: 2.545 MB / 0.5007 GB, free: 15.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.6017, allocations: 12.03 kB / 0.5007 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008813/0.6105, allocations: 1.962 MB / 0.5026 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008857/0.6194, allocations: 3.302 MB / 0.5058 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.6196, allocations: 76 kB / 0.5059 GB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005868/0.6202, allocations: 132 kB / 0.506 GB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006482/0.6267, allocations: 3.909 MB / 0.5099 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009059/0.6358, allocations: 6.199 MB / 0.5159 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.84e-05/0.6359, allocations: 47.53 kB / 0.516 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/0.6362, allocations: 27.98 kB / 0.516 GB, free: 15.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009329/0.6371, allocations: 0.7072 MB / 0.5167 GB, free: 14.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2824/0.9195, allocations: 32.05 MB / 0.548 GB, free: 86.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002605/0.9222, allocations: 2.022 MB / 0.55 GB, free: 85.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.9234, allocations: 0.9932 MB / 0.5509 GB, free: 85.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.213e-05/0.9235, allocations: 10.94 kB / 0.5509 GB, free: 85.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.9235, allocations: 42.3 kB / 0.551 GB, free: 85.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=98): time 3.577e-06/0.9235, allocations: 5.656 kB / 0.551 GB, free: 85.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=106): time 0.01717/0.9407, allocations: 8.196 MB / 0.559 GB, free: 83.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.9408, allocations: 144.2 kB / 0.5591 GB, free: 83.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.9445, allocations: 2.174 MB / 0.5612 GB, free: 83.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.9447, allocations: 29.52 kB / 0.5613 GB, free: 83.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.946, allocations: 2.13 MB / 0.5634 GB, free: 82.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004849/0.9465, allocations: 430.8 kB / 0.5638 GB, free: 81.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.9467, allocations: 0 / 0.5638 GB, free: 81.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002823/0.947, allocations: 0.5449 MB / 0.5643 GB, free: 81.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.9485, allocations: 1.316 MB / 0.5656 GB, free: 81.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002683/0.9512, allocations: 4.224 MB / 0.5697 GB, free: 77.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002763/0.954, allocations: 2.347 MB / 0.572 GB, free: 77.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.232e-05/0.9541, allocations: 30.19 kB / 0.572 GB, free: 77.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.009724/0.9638, allocations: 5.498 MB / 0.5774 GB, free: 75.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.625e-05/0.9639, allocations: 50.47 kB / 0.5774 GB, free: 75.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.964, allocations: 107.6 kB / 0.5775 GB, free: 75.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/0.9661, allocations: 0.8018 MB / 0.5783 GB, free: 75.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003175/0.9693, allocations: 1.04 MB / 0.5793 GB, free: 75.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004854/0.9742, allocations: 3.959 MB / 0.5832 GB, free: 73.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004419/0.9786, allocations: 206 kB / 0.5834 GB, free: 73.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009038/0.9796, allocations: 289.7 kB / 0.5837 GB, free: 73.62 MB / 410.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.0007661/0.9804, allocations: 365.1 kB / 0.584 GB, free: 73.31 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004066/0.9844, allocations: 2.195 MB / 0.5862 GB, free: 72.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004642/0.9849, allocations: 210.9 kB / 0.5864 GB, free: 72.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.9884, allocations: 1.783 MB / 0.5881 GB, free: 72.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.701e-05/0.9885, allocations: 10.72 kB / 0.5881 GB, free: 72.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.9885, allocations: 3.719 kB / 0.5881 GB, free: 72.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.9885, allocations: 7.094 kB / 0.5881 GB, free: 72.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007689/0.9962, allocations: 4.322 MB / 0.5924 GB, free: 70.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.9963, allocations: 0 / 0.5924 GB, free: 70.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006541/0.9969, allocations: 133.7 kB / 0.5925 GB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.9988, allocations: 0.637 MB / 0.5931 GB, free: 70.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-05/0.9989, allocations: 3.875 kB / 0.5931 GB, free: 70.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003857/1.003, allocations: 3.504 MB / 0.5965 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/1.003, allocations: 6.562 kB / 0.5965 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005099/1.008, allocations: 3.674 MB / 0.6001 GB, free: 66.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/1.009, allocations: 418.4 kB / 0.6005 GB, free: 66.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/1.009, allocations: 6.547 kB / 0.6005 GB, free: 66.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009815/1.01, allocations: 56.81 kB / 0.6006 GB, free: 66.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/1.01, allocations: 60.53 kB / 0.6006 GB, free: 66.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.075e-05/1.01, allocations: 31.91 kB / 0.6007 GB, free: 66.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002069/1.013, allocations: 1.43 MB / 0.6021 GB, free: 65.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.013, allocations: 0 / 0.6021 GB, free: 65.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004076/1.017, allocations: 0.5546 MB / 0.6026 GB, free: 65.37 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.005032/1.022, allocations: 4.592 MB / 0.6071 GB, free: 61.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005005/1.027, allocations: 3.187 MB / 0.6102 GB, free: 58.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/1.027, allocations: 4 kB / 0.6102 GB, free: 58.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000999/1.028, allocations: 0.8917 MB / 0.6111 GB, free: 57.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/1.029, allocations: 192.9 kB / 0.6113 GB, free: 57.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/1.04, allocations: 5.104 MB / 0.6163 GB, free: 53.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/1.042, allocations: 2.245 MB / 0.6184 GB, free: 51.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003275/1.045, allocations: 1.451 MB / 0.6199 GB, free: 50.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001455/1.047, allocations: 1.053 MB / 0.6209 GB, free: 49.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/1.047, allocations: 0 / 0.6209 GB, free: 49.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07546/1.122, allocations: 45.2 MB / 0.665 GB, free: 6.398 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/1.123, allocations: 150.9 kB / 0.6652 GB, free: 6.203 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.313/4.436, allocations: 0 / 0.6652 GB, free: 6.203 MB / 410.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