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.002342/0.002342, allocations: 181.4 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.189/2.189, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001123/0.001123, allocations: 78.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.624e-05, allocations: 0 / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 47.58 MB / 369.2 MB, free: 2.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4457/0.5493, allocations: 94.25 MB / 463.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.5497, allocations: 93.98 kB / 463.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8227/1.372, allocations: 123.5 MB / 0.5733 GB, free: 88.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.373, allocations: 4 kB / 0.5733 GB, free: 88.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005118/1.373, allocations: 123.6 kB / 0.5734 GB, free: 88.46 MB / 410.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.03037/1.403, allocations: 6.523 MB / 0.5798 GB, free: 86.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/1.404, allocations: 10.66 kB / 0.5798 GB, free: 86.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006169/1.41, allocations: 1.202 MB / 0.581 GB, free: 85.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06896/1.479, allocations: 9.427 MB / 0.5902 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03205/1.511, allocations: 8.584 MB / 0.5986 GB, free: 81.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006671/1.512, allocations: 434.1 kB / 0.599 GB, free: 81.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003838/1.515, allocations: 0.583 MB / 0.5995 GB, free: 81.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04739/1.563, allocations: 14.71 MB / 0.6139 GB, free: 65.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005544/1.564, allocations: 91.23 kB / 0.614 GB, free: 65.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003314/1.567, allocations: 276.3 kB / 0.6143 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003328/1.57, allocations: 1.439 MB / 0.6157 GB, free: 63.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04063/1.611, allocations: 12.82 MB / 0.6282 GB, free: 51.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1153/1.726, allocations: 64.75 MB / 0.6914 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3461/2.072, allocations: 7.797 MB / 0.699 GB, free: 96.51 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01126/2.084, allocations: 5.151 MB / 0.7041 GB, free: 96.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03479/2.118, allocations: 12.99 MB / 0.7167 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.778e-05/2.119, allocations: 73.44 kB / 0.7168 GB, free: 94.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.115e-06/2.119, allocations: 0 / 0.7168 GB, free: 94.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.4614/2.58, allocations: 79.77 MB / 0.7947 GB, free: 50.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/2.58, allocations: 271.5 kB / 0.795 GB, free: 50.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/2.592, allocations: 4.731 MB / 0.7996 GB, free: 45.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002266/2.594, allocations: 117.7 kB / 0.7997 GB, free: 45.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003527/2.598, allocations: 3.807 MB / 0.8034 GB, free: 42.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00413/2.602, allocations: 2.11 MB / 0.8055 GB, free: 39.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002607/2.605, allocations: 190.3 kB / 0.8057 GB, free: 39.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007571/2.605, allocations: 0.7155 MB / 0.8064 GB, free: 39.01 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01954/2.625, allocations: 8.562 MB / 0.8147 GB, free: 30.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02246/2.648, allocations: 12.66 MB / 0.8271 GB, free: 15.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02377/2.671, allocations: 10.52 MB / 0.8374 GB, free: 5.301 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001314/2.672, allocations: 44 kB / 0.8374 GB, free: 5.258 MB / 426.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.4977/3.169, allocations: 39.86 MB / 0.8763 GB, free: 91.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/3.169, allocations: 63.31 kB / 0.8764 GB, free: 91.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001715/3.17, allocations: 137.6 kB / 0.8765 GB, free: 91.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1182/3.288, allocations: 21.51 MB / 0.8975 GB, free: 88.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009007/3.297, allocations: 1.438 MB / 0.8989 GB, free: 88.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7496/4.047, allocations: 144.4 MB / 1.04 GB, free: 95.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01796/4.065, allocations: 0.7203 MB / 1.041 GB, free: 95.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003309/4.068, allocations: 0.5307 MB / 1.041 GB, free: 95.67 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 () * 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.005529/4.074, allocations: 0.7394 MB / 1.042 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002856/4.076, allocations: 0.5949 MB / 1.042 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.146/4.223, allocations: 36.13 MB / 1.078 GB, free: 87.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001122/4.223, allocations: 60.56 kB / 1.078 GB, free: 87.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001683/4.223, allocations: 62.41 kB / 1.078 GB, free: 87.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001352/4.223, allocations: 32.31 kB / 1.078 GB, free: 87.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2063/4.429, allocations: 57.03 MB / 1.134 GB, free: 51.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001171/4.429, allocations: 0 / 1.134 GB, free: 51.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00292/4.432, allocations: 275.6 kB / 1.134 GB, free: 51.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1096/4.542, allocations: 20.72 MB / 1.154 GB, free: 30.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002449/4.545, allocations: 107.3 kB / 1.154 GB, free: 30.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6806/5.225, allocations: 132.2 MB / 1.283 GB, free: 58.81 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/5.225, allocations: 4 kB / 1.283 GB, free: 58.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1683/5.394, allocations: 48.55 MB / 1.331 GB, free: 18.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00979/5.403, allocations: 2.402 MB / 1.333 GB, free: 16.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003358/5.407, allocations: 96 kB / 1.333 GB, free: 16.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01319/5.42, allocations: 499.2 kB / 1.334 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00512/5.425, allocations: 0.5144 MB / 1.334 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001288/5.426, allocations: 145.5 kB / 1.334 GB, free: 15.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007732/5.434, allocations: 3.371 MB / 1.338 GB, free: 11.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/5.434, allocations: 0 / 1.338 GB, free: 11.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01795/5.452, allocations: 3.433 MB / 1.341 GB, free: 8.375 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 () * 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.5127/5.965, allocations: 49.18 MB / 1.389 GB, free: 96.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.06349/6.029, allocations: 24.2 MB / 1.413 GB, free: 88.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/6.029, allocations: 3.75 kB / 1.413 GB, free: 88.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03984/6.068, allocations: 13.58 MB / 1.426 GB, free: 80.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007641/6.076, allocations: 0.7041 MB / 1.427 GB, free: 80.22 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06871/6.145, allocations: 24.07 MB / 1.45 GB, free: 59.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01201/6.157, allocations: 5.33 MB / 1.455 GB, free: 55.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006689/6.164, allocations: 3.104 MB / 1.458 GB, free: 52.35 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/6.164, allocations: 0 / 1.458 GB, free: 52.35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.507/13.67, allocations: 269.1 MB / 1.721 GB, free: 114.8 MB / 490.7 MB (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