Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001057/0.001057, 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.215/1.215, 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.0007705/0.0007705, allocations: 88.98 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002423, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2212, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.3298, allocations: 99.78 MB / 475.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.3302, allocations: 95.89 kB / 475.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4446/0.7748, allocations: 126.9 MB / 0.5885 GB, free: 27.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.7749, allocations: 4 kB / 0.5885 GB, free: 27.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003287/0.7752, allocations: 119.9 kB / 0.5886 GB, free: 27.23 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01755/0.7928, allocations: 6.779 MB / 0.5952 GB, free: 20.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.7928, allocations: 20.02 kB / 0.5953 GB, free: 20.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004172/0.797, allocations: 1.32 MB / 0.5965 GB, free: 19.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02823/0.8252, allocations: 8.303 MB / 0.6047 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01716/0.8424, allocations: 7.319 MB / 0.6118 GB, free: 3.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004146/0.8429, allocations: 455.7 kB / 0.6122 GB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002808/0.8457, allocations: 0.5856 MB / 0.6128 GB, free: 2.289 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0331/0.8788, allocations: 15.73 MB / 0.6282 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00038/0.8793, allocations: 71.25 kB / 0.6282 GB, free: 1.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002608/0.8819, allocations: 283.8 kB / 0.6285 GB, free: 1.043 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002374/0.8843, allocations: 1.624 MB / 0.6301 GB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02822/0.9125, allocations: 13.97 MB / 0.6437 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2412/1.154, allocations: 64.1 MB / 0.7063 GB, free: 36.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/1.166, allocations: 6.433 MB / 0.7126 GB, free: 33.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0216/1.188, allocations: 14.32 MB / 0.7266 GB, free: 26.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/1.188, allocations: 68.41 kB / 0.7267 GB, free: 26.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 6.583e-06/1.188, allocations: 0 / 0.7267 GB, free: 26.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.1356/1.323, allocations: 42.18 MB / 0.7679 GB, free: 7.961 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/1.324, allocations: 212.9 kB / 0.7681 GB, free: 7.711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008616/1.332, allocations: 4.852 MB / 0.7728 GB, free: 3.555 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007984/1.333, allocations: 73.7 kB / 0.7729 GB, free: 3.477 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003076/1.336, allocations: 4.444 MB / 0.7772 GB, free: 15.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001802/1.338, allocations: 1.244 MB / 0.7784 GB, free: 13.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/1.339, allocations: 175.4 kB / 0.7786 GB, free: 13.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001037/1.34, allocations: 0.6838 MB / 0.7793 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007795/1.348, allocations: 4.538 MB / 0.7837 GB, free: 8.402 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01106/1.359, allocations: 9.51 MB / 0.793 GB, free: 12.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009787/1.369, allocations: 6.419 MB / 0.7992 GB, free: 6.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001954/1.369, allocations: 52 kB / 0.7993 GB, free: 6.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2491/1.618, allocations: 18.67 MB / 0.8175 GB, free: 95.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002567/1.618, allocations: 78.28 kB / 0.8176 GB, free: 95.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003579/1.619, allocations: 177.3 kB / 0.8178 GB, free: 95.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01985/1.639, allocations: 5.63 MB / 0.8233 GB, free: 95.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007678/1.646, allocations: 2.05 MB / 0.8253 GB, free: 95.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03051/1.677, allocations: 24.3 MB / 0.849 GB, free: 91.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007612/1.685, allocations: 0.5409 MB / 0.8495 GB, free: 90.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001997/1.687, allocations: 0.5061 MB / 0.85 GB, free: 90.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1060): * Single equations (assignments): 1052 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008236/1.695, allocations: 3.105 MB / 0.8531 GB, free: 89.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001909/1.697, allocations: 0.5008 MB / 0.8535 GB, free: 89.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0304/1.727, allocations: 12.35 MB / 0.8656 GB, free: 85.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000117/1.727, allocations: 52.55 kB / 0.8656 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-05/1.728, allocations: 11.2 kB / 0.8657 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001075/1.728, allocations: 12.23 kB / 0.8657 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05055/1.778, allocations: 23.95 MB / 0.8891 GB, free: 73.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.291e-05/1.778, allocations: 11.81 kB / 0.8891 GB, free: 73.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002868/1.781, allocations: 0.566 MB / 0.8896 GB, free: 72.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0164/1.798, allocations: 4.645 MB / 0.8942 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009117/1.799, allocations: 63.81 kB / 0.8942 GB, free: 69.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02079/1.819, allocations: 19.57 MB / 0.9133 GB, free: 49.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.819, allocations: 11.56 kB / 0.9133 GB, free: 49.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03084/1.85, allocations: 17.38 MB / 0.9303 GB, free: 32.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004193/1.855, allocations: 1.215 MB / 0.9315 GB, free: 31.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001758/1.856, allocations: 59.98 kB / 0.9316 GB, free: 31.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004045/1.86, allocations: 242.6 kB / 0.9318 GB, free: 30.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001038/1.861, allocations: 192.3 kB / 0.932 GB, free: 30.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005651/1.862, allocations: 87.98 kB / 0.9321 GB, free: 30.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006639/1.869, allocations: 3.378 MB / 0.9354 GB, free: 27.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.869, allocations: 0 / 0.9354 GB, free: 27.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009749/1.878, allocations: 1.705 MB / 0.937 GB, free: 25.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03233/1.911, allocations: 19.09 MB / 0.9557 GB, free: 6.359 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01585/1.927, allocations: 10.45 MB / 0.9659 GB, free: 11.97 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.927, allocations: 4 kB / 0.9659 GB, free: 11.97 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.197/2.124, allocations: 3.95 MB / 0.9697 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/2.127, allocations: 0.5707 MB / 0.9703 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05904/2.186, allocations: 150.3 MB / 1.117 GB, free: 9.949 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008587/2.194, allocations: 4.77 MB / 1.122 GB, free: 9.078 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008628/2.203, allocations: 2.985 MB / 1.125 GB, free: 8.871 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00516/2.208, allocations: 2.928 MB / 1.127 GB, free: 8.859 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/2.208, allocations: 0 / 1.127 GB, free: 8.859 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3464/2.555, allocations: 133.2 MB / 1.258 GB, free: 99.32 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/2.555, allocations: 210.2 kB / 1.258 GB, free: 99.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.683/7.238, allocations: 0 / 1.258 GB, free: 99.07 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat