Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_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.001062/0.001062, allocations: 102.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246 MB, free: 11.96 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002562, allocations: 8 kB / 306.8 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 51.49 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.269/0.3844, allocations: 50.26 MB / 408.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03308/0.4175, allocations: 11.34 MB / 419.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01565/0.4332, allocations: 239.4 kB / 420.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01087/0.4441, allocations: 2.57 MB / 422.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02526/0.4694, allocations: 7.696 MB / 430.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004905/0.4744, allocations: 0.9048 MB / 431.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07848/0.5529, allocations: 62.04 MB / 493.4 MB, free: 4.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009525/0.5624, allocations: 6.56 MB / 499.9 MB, free: 13.96 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003468/0.5659, allocations: 1.654 MB / 0.4898 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00412/0.5701, allocations: 2.539 MB / 0.4923 GB, free: 9.758 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008037/0.5709, allocations: 195.9 kB / 0.4925 GB, free: 9.566 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002687/0.5736, allocations: 1.163 MB / 0.4936 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002298/0.5759, allocations: 2.19 MB / 0.4958 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.5772, allocations: 1.041 MB / 0.4968 GB, free: 5.156 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00821/0.5854, allocations: 7.548 MB / 0.5041 GB, free: 13.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.5855, allocations: 0 / 0.5041 GB, free: 13.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.5855, allocations: 0 / 0.5041 GB, free: 13.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003017/0.5858, allocations: 0 / 0.5041 GB, free: 13.59 MB / 430.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.01239/0.5982, allocations: 5.155 MB / 0.5092 GB, free: 8.359 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.5983, allocations: 16.03 kB / 0.5092 GB, free: 8.344 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00275/0.601, allocations: 0.94 MB / 0.5101 GB, free: 7.391 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03195/0.633, allocations: 6.097 MB / 0.5161 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009189/0.6422, allocations: 4.097 MB / 0.5201 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.6425, allocations: 303.9 kB / 0.5204 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/0.6441, allocations: 443.6 kB / 0.5208 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.229/0.8731, allocations: 12.31 MB / 0.5328 GB, free: 146.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002365/0.8734, allocations: 50.62 kB / 0.5328 GB, free: 146.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006196/0.874, allocations: 194.1 kB / 0.533 GB, free: 146.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003771/0.8778, allocations: 2.032 MB / 0.535 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02198/0.8998, allocations: 10.34 MB / 0.5451 GB, free: 143.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04899/0.9488, allocations: 44.13 MB / 0.5882 GB, free: 106.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01052/0.9594, allocations: 4.839 MB / 0.5929 GB, free: 101.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002217/0.9617, allocations: 1.962 MB / 0.5948 GB, free: 99.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008909/0.9706, allocations: 7.076 MB / 0.6018 GB, free: 92.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.9707, allocations: 55.5 kB / 0.6018 GB, free: 92.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.049e-06/0.9707, allocations: 0 / 0.6018 GB, free: 92.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05298/1.024, allocations: 19.06 MB / 0.6204 GB, free: 73.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/1.024, allocations: 205.9 kB / 0.6206 GB, free: 73.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00524/1.029, allocations: 4.457 MB / 0.625 GB, free: 68.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002136/1.029, allocations: 61.7 kB / 0.625 GB, free: 68.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001646/1.031, allocations: 3.566 MB / 0.6285 GB, free: 64.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005902/1.032, allocations: 0.8343 MB / 0.6293 GB, free: 64.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/1.032, allocations: 128 kB / 0.6295 GB, free: 64.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002455/1.032, allocations: 0.5746 MB / 0.63 GB, free: 63.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/1.035, allocations: 2.203 MB / 0.6322 GB, free: 61.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003868/1.039, allocations: 5.96 MB / 0.638 GB, free: 53.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00389/1.042, allocations: 3.557 MB / 0.6415 GB, free: 49.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-05/1.043, allocations: 36 kB / 0.6415 GB, free: 49.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01256/1.055, allocations: 8.992 MB / 0.6503 GB, free: 40.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.514e-05/1.055, allocations: 63.95 kB / 0.6503 GB, free: 40.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.946e-05/1.055, allocations: 132 kB / 0.6505 GB, free: 40.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003079/1.058, allocations: 1.223 MB / 0.6517 GB, free: 39.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003752/1.062, allocations: 1.423 MB / 0.653 GB, free: 37.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008665/1.071, allocations: 7.531 MB / 0.6604 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004117/1.075, allocations: 343.4 kB / 0.6607 GB, free: 30 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004166/1.075, allocations: 383.9 kB / 0.6611 GB, free: 29.62 MB / 446.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 (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.003215/1.079, allocations: 2.487 MB / 0.6635 GB, free: 27.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005003/1.079, allocations: 402.8 kB / 0.6639 GB, free: 26.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006377/1.085, allocations: 3.875 MB / 0.6677 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.82e-05/1.086, allocations: 28 kB / 0.6677 GB, free: 22.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/1.086, allocations: 8 kB / 0.6677 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/1.086, allocations: 11.95 kB / 0.6677 GB, free: 22.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/1.102, allocations: 10.17 MB / 0.6777 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.102, allocations: 4 kB / 0.6777 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/1.104, allocations: 351.4 kB / 0.678 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002816/1.107, allocations: 0.9884 MB / 0.679 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001818/1.107, allocations: 52.88 kB / 0.679 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007407/1.114, allocations: 6.224 MB / 0.6851 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/1.114, allocations: 4 kB / 0.6851 GB, free: 4.746 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009809/1.124, allocations: 6.604 MB / 0.6916 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/1.126, allocations: 463.7 kB / 0.692 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/1.126, allocations: 36 kB / 0.692 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/1.128, allocations: 111.9 kB / 0.6921 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003297/1.128, allocations: 148.2 kB / 0.6923 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/1.128, allocations: 63.98 kB / 0.6923 GB, free: 13.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004807/1.133, allocations: 2.805 MB / 0.6951 GB, free: 10.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.133, allocations: 0 / 0.6951 GB, free: 10.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006514/1.14, allocations: 1.164 MB / 0.6962 GB, free: 9.27 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 (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.01205/1.152, allocations: 7.3 MB / 0.7033 GB, free: 1.887 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1866/1.338, allocations: 5.48 MB / 0.7087 GB, free: 154.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.338, allocations: 1.188 kB / 0.7087 GB, free: 154.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002639/1.341, allocations: 1.836 MB / 0.7105 GB, free: 154 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/1.344, allocations: 0.539 MB / 0.711 GB, free: 154 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06171/1.406, allocations: 40.67 MB / 0.7507 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003563/1.409, allocations: 3.871 MB / 0.7545 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004235/1.414, allocations: 1.931 MB / 0.7564 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002116/1.416, allocations: 2.288 MB / 0.7586 GB, free: 117.7 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/1.416, allocations: 3.938 kB / 0.7586 GB, free: 117.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/1.525, allocations: 90.83 MB / 0.8473 GB, free: 27.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001317/1.525, allocations: 224.8 kB / 0.8476 GB, free: 27.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.443/5.968, allocations: 0 / 0.8476 GB, free: 27.05 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)