Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009871/0.0009872, allocations: 181.2 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.214/1.214, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0009155/0.0009156, allocations: 101.4 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002232/0.0002232, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2072, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3153, allocations: 103.5 MB / 479.4 MB, free: 9.152 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.3156, allocations: 95.95 kB / 479.5 MB, free: 9.059 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3884/0.704, allocations: 111.2 MB / 0.5768 GB, free: 39.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.7041, allocations: 4 kB / 0.5768 GB, free: 39.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002945/0.7044, allocations: 108 kB / 0.5769 GB, free: 39.76 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.01469/0.7191, allocations: 5.375 MB / 0.5822 GB, free: 34.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.7191, allocations: 16.03 kB / 0.5822 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003445/0.7226, allocations: 1.032 MB / 0.5832 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02444/0.747, allocations: 6.897 MB / 0.5899 GB, free: 26.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01502/0.7621, allocations: 6.808 MB / 0.5966 GB, free: 19.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.7624, allocations: 390.3 kB / 0.597 GB, free: 19.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002011/0.7645, allocations: 0.5192 MB / 0.5975 GB, free: 18.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0233/0.7878, allocations: 12.66 MB / 0.6098 GB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002691/0.7881, allocations: 59.47 kB / 0.6099 GB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001555/0.7897, allocations: 243.9 kB / 0.6101 GB, free: 4.637 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00128/0.791, allocations: 1.055 MB / 0.6112 GB, free: 3.582 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/0.8103, allocations: 10.54 MB / 0.6214 GB, free: 9.031 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2362/1.047, allocations: 50.24 MB / 0.6705 GB, free: 50.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01046/1.057, allocations: 4.801 MB / 0.6752 GB, free: 49.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008542/1.066, allocations: 7.053 MB / 0.6821 GB, free: 47.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/1.066, allocations: 53.38 kB / 0.6821 GB, free: 47.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 3.937e-06/1.066, allocations: 0 / 0.6821 GB, free: 47.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.06184/1.128, allocations: 20.34 MB / 0.702 GB, free: 44.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/1.128, allocations: 205.5 kB / 0.7022 GB, free: 43.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007203/1.135, allocations: 3.953 MB / 0.7061 GB, free: 43.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/1.135, allocations: 65.31 kB / 0.7061 GB, free: 43.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/1.137, allocations: 3.577 MB / 0.7096 GB, free: 41.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006831/1.138, allocations: 0.8329 MB / 0.7104 GB, free: 41.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003836/1.139, allocations: 126.8 kB / 0.7105 GB, free: 41.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002997/1.139, allocations: 0.5758 MB / 0.7111 GB, free: 40.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002576/1.141, allocations: 2.162 MB / 0.7132 GB, free: 40.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003844/1.145, allocations: 5.91 MB / 0.719 GB, free: 34.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003711/1.149, allocations: 3.525 MB / 0.7224 GB, free: 33.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-05/1.149, allocations: 38.66 kB / 0.7225 GB, free: 33.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.01218/1.161, allocations: 8.806 MB / 0.7311 GB, free: 30.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.511e-05/1.161, allocations: 59.84 kB / 0.7311 GB, free: 30.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.26e-05/1.161, allocations: 138.2 kB / 0.7313 GB, free: 30.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002808/1.164, allocations: 1.041 MB / 0.7323 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003419/1.168, allocations: 1.421 MB / 0.7337 GB, free: 30.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008094/1.176, allocations: 7.134 MB / 0.7406 GB, free: 24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003975/1.18, allocations: 334 kB / 0.7409 GB, free: 23.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003971/1.18, allocations: 383.6 kB / 0.7413 GB, free: 23.34 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.003561/1.184, allocations: 2.495 MB / 0.7437 GB, free: 21.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005007/1.184, allocations: 406.8 kB / 0.7441 GB, free: 20.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006118/1.19, allocations: 3.65 MB / 0.7477 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-05/1.19, allocations: 27.95 kB / 0.7477 GB, free: 17.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/1.19, allocations: 8 kB / 0.7477 GB, free: 17.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/1.19, allocations: 7.172 kB / 0.7477 GB, free: 17.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/1.206, allocations: 9.891 MB / 0.7574 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/1.206, allocations: 4 kB / 0.7574 GB, free: 9.578 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/1.207, allocations: 358.3 kB / 0.7577 GB, free: 9.293 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002552/1.21, allocations: 0.8039 MB / 0.7585 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/1.21, allocations: 47.61 kB / 0.7586 GB, free: 8.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006845/1.217, allocations: 5.843 MB / 0.7643 GB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.217, allocations: 11.94 kB / 0.7643 GB, free: 3.496 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01269/1.229, allocations: 7.281 MB / 0.7714 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/1.231, allocations: 0.7128 MB / 0.7721 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004107/1.232, allocations: 43.75 kB / 0.7721 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.233, allocations: 95.23 kB / 0.7722 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/1.233, allocations: 153.5 kB / 0.7724 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.234, allocations: 67.8 kB / 0.7724 GB, free: 12.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003971/1.238, allocations: 2.784 MB / 0.7752 GB, free: 10.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.238, allocations: 0 / 0.7752 GB, free: 10.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004549/1.242, allocations: 1.18 MB / 0.7763 GB, free: 9.305 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.01039/1.253, allocations: 8.978 MB / 0.7851 GB, free: 264 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007529/1.26, allocations: 5.395 MB / 0.7903 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.26, allocations: 5.938 kB / 0.7904 GB, free: 10.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002264/1.262, allocations: 1.815 MB / 0.7921 GB, free: 9.059 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/1.264, allocations: 0.5139 MB / 0.7926 GB, free: 8.562 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2218/1.486, allocations: 113.8 MB / 0.9037 GB, free: 31.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005261/1.491, allocations: 3.99 MB / 0.9076 GB, free: 30.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004338/1.496, allocations: 1.94 MB / 0.9095 GB, free: 30.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002235/1.498, allocations: 2.311 MB / 0.9118 GB, free: 30.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/1.498, allocations: 0 / 0.9118 GB, free: 30.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3089/1.807, allocations: 89.45 MB / 0.9991 GB, free: 109.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/1.807, allocations: 210.3 kB / 0.9993 GB, free: 109.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.057/5.864, allocations: 9.031 kB / 0.9994 GB, free: 109.6 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat