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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001044/0.001044, allocations: 89.48 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.961e-05/4.989e-05, allocations: 4 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1369, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4707/0.6076, allocations: 105.8 MB / 0.496 GB, free: 28 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/0.608, allocations: 87.92 kB / 0.4961 GB, free: 15.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6931/1.301, allocations: 115 MB / 0.6084 GB, free: 79.03 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.569e-06/1.301, allocations: 3.609 kB / 0.6084 GB, free: 79.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007954/1.302, allocations: 108.6 kB / 0.6085 GB, free: 79.02 MB / 442.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.02416/1.326, allocations: 4.941 MB / 0.6133 GB, free: 76.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.21e-05/1.326, allocations: 12.69 kB / 0.6133 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006122/1.332, allocations: 1.035 MB / 0.6143 GB, free: 76.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03071/1.363, allocations: 6.903 MB / 0.6211 GB, free: 76.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02138/1.385, allocations: 5.834 MB / 0.6268 GB, free: 75.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005527/1.385, allocations: 384.5 kB / 0.6271 GB, free: 75.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003546/1.389, allocations: 0.5189 MB / 0.6276 GB, free: 75.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03685/1.426, allocations: 12.56 MB / 0.6399 GB, free: 72.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007459/1.426, allocations: 69.09 kB / 0.64 GB, free: 72.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003818/1.43, allocations: 244.2 kB / 0.6402 GB, free: 72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002004/1.432, allocations: 1.04 MB / 0.6412 GB, free: 71.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/1.459, allocations: 10.39 MB / 0.6514 GB, free: 68.53 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06552/1.525, allocations: 50.19 MB / 0.7004 GB, free: 31.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/1.537, allocations: 4.768 MB / 0.705 GB, free: 28.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002309/1.539, allocations: 1.877 MB / 0.7069 GB, free: 26.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/1.551, allocations: 7.024 MB / 0.7137 GB, free: 20.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.774e-05/1.551, allocations: 51.56 kB / 0.7138 GB, free: 20.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 6.101e-06/1.551, allocations: 1.594 kB / 0.7138 GB, free: 20.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.05445/1.606, allocations: 17.02 MB / 0.7304 GB, free: 3.074 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/1.606, allocations: 209.8 kB / 0.7306 GB, free: 2.828 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006185/1.612, allocations: 3.88 MB / 0.7344 GB, free: 14.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004967/1.612, allocations: 57.7 kB / 0.7344 GB, free: 14.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003404/1.616, allocations: 3.578 MB / 0.7379 GB, free: 11.29 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/1.617, allocations: 0.843 MB / 0.7388 GB, free: 10.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003586/1.618, allocations: 128 kB / 0.7389 GB, free: 10.33 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004234/1.618, allocations: 0.5708 MB / 0.7394 GB, free: 9.754 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003629/1.622, allocations: 2.113 MB / 0.7415 GB, free: 7.637 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3712/1.993, allocations: 5.853 MB / 0.7472 GB, free: 86.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006921/2, allocations: 3.523 MB / 0.7507 GB, free: 86.08 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000125/2, allocations: 37.47 kB / 0.7507 GB, free: 86.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.01999/2.02, allocations: 8.686 MB / 0.7592 GB, free: 85.56 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/2.02, allocations: 62.75 kB / 0.7592 GB, free: 85.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002212/2.021, allocations: 131.8 kB / 0.7594 GB, free: 85.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003175/2.024, allocations: 1.028 MB / 0.7604 GB, free: 85.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005194/2.029, allocations: 1.424 MB / 0.7618 GB, free: 85.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009677/2.039, allocations: 6.884 MB / 0.7685 GB, free: 84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0065/2.045, allocations: 336 kB / 0.7688 GB, free: 84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/2.047, allocations: 383.9 kB / 0.7692 GB, free: 84 MB / 458.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 () * 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.001219/2.048, allocations: 0.5897 MB / 0.7697 GB, free: 83.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009966/2.049, allocations: 409.5 kB / 0.7701 GB, free: 83.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008151/2.057, allocations: 3.608 MB / 0.7737 GB, free: 83.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-05/2.057, allocations: 23.28 kB / 0.7737 GB, free: 83.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-05/2.057, allocations: 7.531 kB / 0.7737 GB, free: 83.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.783e-05/2.057, allocations: 16.88 kB / 0.7737 GB, free: 83.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02689/2.084, allocations: 9.814 MB / 0.7833 GB, free: 82.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.177e-05/2.084, allocations: 6.25 kB / 0.7833 GB, free: 82.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/2.086, allocations: 360.8 kB / 0.7836 GB, free: 82.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003189/2.089, allocations: 0.7954 MB / 0.7844 GB, free: 81.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003863/2.09, allocations: 43 kB / 0.7845 GB, free: 81.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00934/2.099, allocations: 5.598 MB / 0.7899 GB, free: 78.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/2.099, allocations: 11.56 kB / 0.7899 GB, free: 78.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/2.11, allocations: 6.948 MB / 0.7967 GB, free: 75.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/2.112, allocations: 450.4 kB / 0.7971 GB, free: 74.97 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005137/2.113, allocations: 46.2 kB / 0.7972 GB, free: 74.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/2.114, allocations: 100.3 kB / 0.7973 GB, free: 74.92 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000393/2.115, allocations: 146 kB / 0.7974 GB, free: 74.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/2.115, allocations: 63.59 kB / 0.7975 GB, free: 74.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005025/2.12, allocations: 2.723 MB / 0.8001 GB, free: 73.92 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.12, allocations: 0 / 0.8001 GB, free: 73.92 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007327/2.127, allocations: 1.183 MB / 0.8013 GB, free: 73.78 MB / 458.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 () * 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.01036/2.138, allocations: 8.909 MB / 0.81 GB, free: 68.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008651/2.146, allocations: 5.332 MB / 0.8152 GB, free: 66.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.146, allocations: 1.594 kB / 0.8152 GB, free: 66.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002408/2.149, allocations: 1.763 MB / 0.8169 GB, free: 65.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/2.152, allocations: 0.5112 MB / 0.8174 GB, free: 65.49 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/2.179, allocations: 10.69 MB / 0.8279 GB, free: 61.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006335/2.186, allocations: 3.984 MB / 0.8318 GB, free: 60 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00572/2.191, allocations: 1.953 MB / 0.8337 GB, free: 59.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003661/2.195, allocations: 2.304 MB / 0.8359 GB, free: 57.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/2.195, allocations: 0 / 0.8359 GB, free: 57.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4387/2.634, allocations: 90.66 MB / 0.9244 GB, free: 78.13 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/2.634, allocations: 185.5 kB / 0.9246 GB, free: 77.91 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.227/7.861, allocations: 3.875 kB / 0.9246 GB, free: 77.91 MB / 474.7 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)