Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0-beta_om_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/ModelicaServices trunk/package.mo): time 0.001311/0.001316, allocations: 117.2 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.484/1.484, allocations: 227.7 MB / 247.2 MB, free: 10.25 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 67.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2883, allocations: 50.54 MB / 409 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.0158/0.3042, allocations: 13.44 MB / 422.5 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.3145, allocations: 4.881 MB / 427.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002179/0.3167, allocations: 83.75 kB / 427.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008411/0.3251, allocations: 4.167 MB / 431.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005853/0.331, allocations: 2.124 MB / 433.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.3337, allocations: 1.1 MB / 434.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009732/0.3435, allocations: 6.055 MB / 440.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007384/0.3509, allocations: 5.301 MB / 446.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004431/0.3554, allocations: 2.158 MB / 448.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005315/0.3607, allocations: 2.859 MB / 451.2 MB, free: 7.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001898/0.3627, allocations: 0.4922 MB / 451.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0043/0.367, allocations: 1.611 MB / 453.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004002/0.371, allocations: 2.56 MB / 455.9 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005609/0.3767, allocations: 2.937 MB / 458.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.3911, allocations: 9.656 MB / 468.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.3912, allocations: 3.984 kB / 468.5 MB, free: 5.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3912, allocations: 0 / 468.5 MB, free: 5.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003273/0.3915, allocations: 0 / 468.5 MB, free: 5.738 MB / 382.1 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.01761/0.4091, allocations: 6.355 MB / 474.8 MB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.4092, allocations: 12.03 kB / 474.8 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002816/0.412, allocations: 0.9247 MB / 475.8 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03975/0.4518, allocations: 6.055 MB / 481.8 MB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01153/0.4634, allocations: 4.259 MB / 486.1 MB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004391/0.4638, allocations: 308.1 kB / 486.4 MB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002014/0.4659, allocations: 443.7 kB / 486.8 MB, free: 3.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/0.495, allocations: 12.32 MB / 499.1 MB, free: 6.164 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001878/0.4953, allocations: 47.59 kB / 499.2 MB, free: 6.117 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008436/0.4961, allocations: 191.8 kB / 499.4 MB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003552/0.4997, allocations: 2.035 MB / 0.4897 GB, free: 3.891 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02405/0.5237, allocations: 10.36 MB / 0.4998 GB, free: 9.512 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3032/0.827, allocations: 43.99 MB / 0.5427 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01132/0.8384, allocations: 4.798 MB / 0.5474 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002348/0.8408, allocations: 1.977 MB / 0.5493 GB, free: 111.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.8517, allocations: 7.092 MB / 0.5563 GB, free: 107.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.8518, allocations: 55.25 kB / 0.5563 GB, free: 107.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 5.49e-06/0.8518, allocations: 2.031 kB / 0.5563 GB, free: 107.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06147/0.9133, allocations: 19.27 MB / 0.5751 GB, free: 95.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.9134, allocations: 209.9 kB / 0.5753 GB, free: 94.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006465/0.9199, allocations: 4.485 MB / 0.5797 GB, free: 90.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004572/0.9204, allocations: 60.98 kB / 0.5798 GB, free: 90.35 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002043/0.9224, allocations: 3.701 MB / 0.5834 GB, free: 86.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008494/0.9233, allocations: 0.8703 MB / 0.5842 GB, free: 86.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001464/0.9248, allocations: 1.275 MB / 0.5855 GB, free: 84.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.03e-05/0.9248, allocations: 309.1 kB / 0.5858 GB, free: 84.49 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/0.9275, allocations: 2.23 MB / 0.588 GB, free: 82.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003711/0.9312, allocations: 5.98 MB / 0.5938 GB, free: 74.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008134/0.9394, allocations: 8.923 MB / 0.6025 GB, free: 63.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/0.9396, allocations: 36 kB / 0.6025 GB, free: 63.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01596/0.9556, allocations: 9.069 MB / 0.6114 GB, free: 54.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.9557, allocations: 60 kB / 0.6115 GB, free: 54.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001945/0.9559, allocations: 132 kB / 0.6116 GB, free: 54.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003498/0.9595, allocations: 1.203 MB / 0.6128 GB, free: 53.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004317/0.9638, allocations: 1.419 MB / 0.6141 GB, free: 51.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009711/0.9735, allocations: 8.013 MB / 0.622 GB, free: 43.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005052/0.9786, allocations: 343.7 kB / 0.6223 GB, free: 43.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.9797, allocations: 375.8 kB / 0.6227 GB, free: 43.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004351/0.984, allocations: 2.484 MB / 0.6251 GB, free: 40.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/0.9851, allocations: 429.1 kB / 0.6255 GB, free: 40.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007598/0.9927, allocations: 3.892 MB / 0.6293 GB, free: 36.19 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.683e-05/0.9928, allocations: 24 kB / 0.6293 GB, free: 36.17 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/0.9928, allocations: 8 kB / 0.6293 GB, free: 36.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-05/0.9929, allocations: 15.91 kB / 0.6293 GB, free: 36.14 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02085/1.014, allocations: 9.954 MB / 0.6391 GB, free: 26.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-05/1.014, allocations: 4 kB / 0.6391 GB, free: 26.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/1.015, allocations: 335.5 kB / 0.6394 GB, free: 25.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003091/1.019, allocations: 0.9806 MB / 0.6403 GB, free: 24.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004065/1.019, allocations: 51.81 kB / 0.6404 GB, free: 24.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008293/1.027, allocations: 6.695 MB / 0.6469 GB, free: 17.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.718e-06/1.027, allocations: 7.938 kB / 0.6469 GB, free: 17.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/1.037, allocations: 6.633 MB / 0.6534 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.039, allocations: 478 kB / 0.6539 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001067/1.04, allocations: 40 kB / 0.6539 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002206/1.042, allocations: 111.9 kB / 0.654 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003963/1.042, allocations: 144.9 kB / 0.6542 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000217/1.043, allocations: 63.2 kB / 0.6542 GB, free: 10.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004772/1.047, allocations: 2.832 MB / 0.657 GB, free: 7.496 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.047, allocations: 0 / 0.657 GB, free: 7.496 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006417/1.054, allocations: 1.148 MB / 0.6581 GB, free: 6.348 MB / 462.1 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01137/1.065, allocations: 7.345 MB / 0.6653 GB, free: 14.91 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01104/1.076, allocations: 5.539 MB / 0.6707 GB, free: 9.395 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/1.076, allocations: 4.438 kB / 0.6707 GB, free: 9.391 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003862/1.08, allocations: 1.851 MB / 0.6725 GB, free: 7.523 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005361/1.086, allocations: 0.5578 MB / 0.673 GB, free: 6.973 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1106/1.196, allocations: 51.5 MB / 0.7233 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00738/1.204, allocations: 3.859 MB / 0.7271 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005577/1.209, allocations: 1.942 MB / 0.729 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004079/1.213, allocations: 2.288 MB / 0.7312 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of SimCode: time 1.402e-06/1.213, allocations: 0 / 0.7312 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4029/1.616, allocations: 83.74 MB / 0.813 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.11/28.73, allocations: 8.531 kB / 0.813 GB, free: 124.1 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)