Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001525/0.001525, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.921/1.921, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001136/0.001136, allocations: 97.28 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005236/0.0005237, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3285, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.486, allocations: 94.34 MB / 469 MB, free: 2.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.4864, allocations: 99.94 kB / 469.1 MB, free: 2.273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7561/1.243, allocations: 123.4 MB / 0.5786 GB, free: 35.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.597e-06/1.243, allocations: 0 / 0.5786 GB, free: 35.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000458/1.243, allocations: 120 kB / 0.5788 GB, free: 35.6 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.03049/1.274, allocations: 7.144 MB / 0.5857 GB, free: 28.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/1.274, allocations: 8.031 kB / 0.5857 GB, free: 28.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005501/1.279, allocations: 1.198 MB / 0.5869 GB, free: 27.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0654/1.345, allocations: 9.426 MB / 0.5961 GB, free: 17.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02945/1.374, allocations: 8.602 MB / 0.6045 GB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000513/1.375, allocations: 435.4 kB / 0.6049 GB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/1.378, allocations: 0.5855 MB / 0.6055 GB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04833/1.426, allocations: 14.83 MB / 0.62 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005712/1.427, allocations: 83.3 kB / 0.6201 GB, free: 7.922 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003198/1.43, allocations: 279.8 kB / 0.6203 GB, free: 7.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003805/1.434, allocations: 1.439 MB / 0.6217 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04466/1.479, allocations: 13.02 MB / 0.6344 GB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4114/1.89, allocations: 64.73 MB / 0.6977 GB, free: 33.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03335/1.924, allocations: 7.869 MB / 0.7053 GB, free: 32.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03197/1.956, allocations: 12.98 MB / 0.718 GB, free: 28.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.462e-05/1.956, allocations: 70.22 kB / 0.7181 GB, free: 28.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 7.073e-06/1.956, allocations: 3.5 kB / 0.7181 GB, free: 28.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 3.626/5.582, allocations: 266.2 MB / 0.978 GB, free: 108.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/5.582, allocations: 265.8 kB / 0.9783 GB, free: 108.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/5.594, allocations: 4.784 MB / 0.9829 GB, free: 108.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002145/5.596, allocations: 118.7 kB / 0.9831 GB, free: 108.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003657/5.6, allocations: 3.806 MB / 0.9868 GB, free: 106.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004024/5.604, allocations: 2.111 MB / 0.9888 GB, free: 105.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002714/5.607, allocations: 187.6 kB / 0.989 GB, free: 105.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007384/5.608, allocations: 0.7207 MB / 0.9897 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02002/5.628, allocations: 8.679 MB / 0.9982 GB, free: 105.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0253/5.653, allocations: 12.78 MB / 1.011 GB, free: 99.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02552/5.679, allocations: 10.59 MB / 1.021 GB, free: 95.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002554/5.679, allocations: 37.97 kB / 1.021 GB, free: 95.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1627/5.842, allocations: 40.1 MB / 1.06 GB, free: 83.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/5.842, allocations: 63.84 kB / 1.06 GB, free: 83.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002013/5.842, allocations: 135.4 kB / 1.06 GB, free: 83.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1188/5.961, allocations: 21.55 MB / 1.081 GB, free: 70.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008618/5.969, allocations: 1.441 MB / 1.083 GB, free: 69.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7521/6.722, allocations: 151.1 MB / 1.23 GB, free: 66.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0182/6.74, allocations: 0.7213 MB / 1.231 GB, free: 65.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003329/6.743, allocations: 0.5327 MB / 1.232 GB, free: 65.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (775): * Single equations (assignments): 768 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.01148/6.755, allocations: 3.134 MB / 1.235 GB, free: 62.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002762/6.758, allocations: 0.5953 MB / 1.235 GB, free: 62.24 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1453/6.903, allocations: 36.29 MB / 1.271 GB, free: 35.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.791e-05/6.903, allocations: 63.31 kB / 1.271 GB, free: 35.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001571/6.903, allocations: 67.84 kB / 1.271 GB, free: 35.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001273/6.903, allocations: 30.95 kB / 1.271 GB, free: 35.14 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5289/7.432, allocations: 57.19 MB / 1.327 GB, free: 87.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.176e-05/7.432, allocations: 3.312 kB / 1.327 GB, free: 87.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002713/7.435, allocations: 275.4 kB / 1.327 GB, free: 87.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1111/7.546, allocations: 20.76 MB / 1.347 GB, free: 87.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00218/7.549, allocations: 100.1 kB / 1.347 GB, free: 87.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6779/8.227, allocations: 138.9 MB / 1.483 GB, free: 80.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/8.227, allocations: 6.531 kB / 1.483 GB, free: 80.72 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1681/8.395, allocations: 48.81 MB / 1.531 GB, free: 78.72 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0091/8.404, allocations: 2.402 MB / 1.533 GB, free: 77.58 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004891/8.409, allocations: 98.03 kB / 1.533 GB, free: 77.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01796/8.427, allocations: 0.4962 MB / 1.534 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007238/8.434, allocations: 0.5019 MB / 1.534 GB, free: 77.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002468/8.437, allocations: 149.9 kB / 1.534 GB, free: 77.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01198/8.449, allocations: 3.423 MB / 1.538 GB, free: 76.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.442e-06/8.449, allocations: 0 / 1.538 GB, free: 76.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.02158/8.47, allocations: 3.437 MB / 1.541 GB, free: 75.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.1644/8.635, allocations: 49.45 MB / 1.589 GB, free: 41.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.06448/8.699, allocations: 24.53 MB / 1.613 GB, free: 20.35 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/8.699, allocations: 0 / 1.613 GB, free: 20.35 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04059/8.74, allocations: 13.79 MB / 1.627 GB, free: 8.066 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007303/8.747, allocations: 0.7166 MB / 1.627 GB, free: 7.387 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6639/9.411, allocations: 201.9 MB / 1.825 GB, free: 9.363 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0125/9.424, allocations: 5.327 MB / 1.83 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007105/9.431, allocations: 3.108 MB / 1.833 GB, free: 3.848 MB / 0.4948 GB Notification: Performance of SimCode: time 1.273e-06/9.431, allocations: 0 / 1.833 GB, free: 3.848 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.29/16.72, allocations: 268.6 MB / 2.095 GB, free: 105.5 MB / 0.4948 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat