Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",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.001582/0.001582, allocations: 181.9 kB / 16.4 MB, free: 5.723 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.019/2.019, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001185/0.001184, allocations: 97.16 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004061, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3269, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1726/0.4995, allocations: 103.5 MB / 478.1 MB, free: 9.238 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.4999, allocations: 95.95 kB / 478.2 MB, free: 9.145 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7351/1.235, allocations: 111.2 MB / 0.5756 GB, free: 40 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.235, allocations: 0 / 0.5756 GB, free: 40 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004566/1.236, allocations: 108 kB / 0.5757 GB, free: 39.89 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.02179/1.257, allocations: 5.386 MB / 0.5809 GB, free: 34.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/1.257, allocations: 12.03 kB / 0.5809 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004576/1.262, allocations: 1.036 MB / 0.582 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04902/1.311, allocations: 6.905 MB / 0.5887 GB, free: 26.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02448/1.336, allocations: 6.804 MB / 0.5953 GB, free: 19.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004597/1.336, allocations: 394.3 kB / 0.5957 GB, free: 19.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002643/1.339, allocations: 0.5075 MB / 0.5962 GB, free: 18.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03911/1.378, allocations: 12.67 MB / 0.6086 GB, free: 5.051 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003487/1.378, allocations: 63.41 kB / 0.6087 GB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002292/1.381, allocations: 239.9 kB / 0.6089 GB, free: 4.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/1.383, allocations: 1.055 MB / 0.6099 GB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03696/1.42, allocations: 10.53 MB / 0.6202 GB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3955/1.815, allocations: 50.24 MB / 0.6693 GB, free: 51.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0224/1.838, allocations: 4.816 MB / 0.674 GB, free: 50.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01877/1.857, allocations: 7.049 MB / 0.6808 GB, free: 48.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/1.857, allocations: 52.72 kB / 0.6809 GB, free: 48.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 6.993e-06/1.857, allocations: 0 / 0.6809 GB, free: 48.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.129/1.986, allocations: 20.34 MB / 0.7008 GB, free: 44.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.837e-05/1.986, allocations: 210.8 kB / 0.701 GB, free: 44.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01051/1.997, allocations: 3.948 MB / 0.7048 GB, free: 44.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005677/1.997, allocations: 55.95 kB / 0.7049 GB, free: 44.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003111/2, allocations: 3.456 MB / 0.7082 GB, free: 42.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001324/2.002, allocations: 0.8415 MB / 0.7091 GB, free: 41.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008889/2.003, allocations: 127.5 kB / 0.7092 GB, free: 41.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005057/2.003, allocations: 0.5766 MB / 0.7097 GB, free: 41.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005853/2.009, allocations: 2.162 MB / 0.7119 GB, free: 41.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008561/2.018, allocations: 5.913 MB / 0.7176 GB, free: 35.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008382/2.026, allocations: 3.531 MB / 0.7211 GB, free: 34.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001444/2.026, allocations: 37.22 kB / 0.7211 GB, free: 34.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.0261/2.052, allocations: 8.632 MB / 0.7295 GB, free: 31.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/2.053, allocations: 64.62 kB / 0.7296 GB, free: 31.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002249/2.053, allocations: 129.9 kB / 0.7297 GB, free: 31.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005872/2.059, allocations: 1.044 MB / 0.7307 GB, free: 31.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008831/2.068, allocations: 1.423 MB / 0.7321 GB, free: 31.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/2.084, allocations: 7.133 MB / 0.7391 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007157/2.091, allocations: 341.6 kB / 0.7394 GB, free: 25.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001425/2.093, allocations: 378.8 kB / 0.7398 GB, free: 24.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006544/2.099, allocations: 2.497 MB / 0.7422 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/2.1, allocations: 402.8 kB / 0.7426 GB, free: 22.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/2.113, allocations: 3.655 MB / 0.7462 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.491e-05/2.113, allocations: 24 kB / 0.7462 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.137e-05/2.113, allocations: 15.77 kB / 0.7462 GB, free: 19.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.86e-05/2.113, allocations: 10.88 kB / 0.7462 GB, free: 19.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03181/2.145, allocations: 9.882 MB / 0.7559 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.981e-05/2.145, allocations: 4 kB / 0.7559 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003265/2.148, allocations: 359 kB / 0.7562 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005363/2.154, allocations: 0.8021 MB / 0.757 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004627/2.154, allocations: 47.14 kB / 0.7571 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01366/2.168, allocations: 5.842 MB / 0.7628 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/2.168, allocations: 15.89 kB / 0.7628 GB, free: 5.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02669/2.195, allocations: 7.535 MB / 0.7701 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003034/2.198, allocations: 0.7068 MB / 0.7708 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001351/2.199, allocations: 43.8 kB / 0.7709 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003794/2.203, allocations: 98.05 kB / 0.771 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008302/2.204, allocations: 162 kB / 0.7711 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002484/2.204, allocations: 60 kB / 0.7712 GB, free: 15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008949/2.213, allocations: 2.786 MB / 0.7739 GB, free: 12.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.134e-06/2.213, allocations: 0 / 0.7739 GB, free: 12.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008865/2.222, allocations: 1.186 MB / 0.775 GB, free: 11.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0228/2.245, allocations: 8.973 MB / 0.7838 GB, free: 2.016 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0154/2.261, allocations: 5.408 MB / 0.7891 GB, free: 12.63 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/2.261, allocations: 0 / 0.7891 GB, free: 12.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005267/2.266, allocations: 1.8 MB / 0.7909 GB, free: 10.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005094/2.271, allocations: 0.5121 MB / 0.7914 GB, free: 10.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3847/2.656, allocations: 114.4 MB / 0.9031 GB, free: 33.72 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009917/2.666, allocations: 3.991 MB / 0.907 GB, free: 32.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005741/2.672, allocations: 2.356 MB / 0.9093 GB, free: 32.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.604e-06/2.672, allocations: 0 / 0.9093 GB, free: 32.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.006/7.677, allocations: 116.9 MB / 1.023 GB, free: 121.2 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat