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.001157/0.001157, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 95.53 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.616e-05, allocations: 4 kB / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 51.47 MB / 395.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5545, allocations: 105.1 MB / 0.4886 GB, free: 4.395 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.5549, allocations: 89.45 kB / 0.4887 GB, free: 4.352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5853/1.14, allocations: 112.6 MB / 0.5987 GB, free: 78.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.14, allocations: 0 / 0.5987 GB, free: 78.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002748/1.14, allocations: 98.09 kB / 0.5988 GB, free: 78.2 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.01772/1.158, allocations: 4.943 MB / 0.6036 GB, free: 76.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/1.158, allocations: 14.33 kB / 0.6036 GB, free: 76.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02902/1.187, allocations: 6.904 MB / 0.6104 GB, free: 75.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01802/1.205, allocations: 5.816 MB / 0.6161 GB, free: 75.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004431/1.206, allocations: 166.4 kB / 0.6162 GB, free: 75.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003122/1.209, allocations: 319.4 kB / 0.6165 GB, free: 75.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01601/1.225, allocations: 7.496 MB / 0.6239 GB, free: 75.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02224/1.247, allocations: 10.64 MB / 0.6342 GB, free: 70.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002119/1.248, allocations: 63.83 kB / 0.6343 GB, free: 70.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008118/1.248, allocations: 30.41 kB / 0.6343 GB, free: 70.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001208/1.25, allocations: 1.053 MB / 0.6354 GB, free: 70.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05111/1.301, allocations: 48.43 MB / 0.6827 GB, free: 35.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003835/1.305, allocations: 3.152 MB / 0.6857 GB, free: 33.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/1.307, allocations: 1.781 MB / 0.6875 GB, free: 32.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/1.308, allocations: 1.209 MB / 0.6887 GB, free: 31.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/1.308, allocations: 58.56 kB / 0.6887 GB, free: 31.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=185): time 5.039e-06/1.308, allocations: 0 / 0.6887 GB, free: 31.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=233): time 0.04138/1.349, allocations: 16.08 MB / 0.7044 GB, free: 25.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/1.349, allocations: 201.2 kB / 0.7046 GB, free: 25.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006276/1.356, allocations: 3.451 MB / 0.708 GB, free: 22.76 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005702/1.356, allocations: 29.64 kB / 0.708 GB, free: 22.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/1.358, allocations: 3.612 MB / 0.7115 GB, free: 19.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.36, allocations: 0.8409 MB / 0.7124 GB, free: 18.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000402/1.36, allocations: 0 / 0.7124 GB, free: 18.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003646/1.361, allocations: 0.5846 MB / 0.7129 GB, free: 18.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002695/1.363, allocations: 2.058 MB / 0.7149 GB, free: 16.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004246/1.367, allocations: 5.904 MB / 0.7207 GB, free: 8.805 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004414/1.372, allocations: 3.487 MB / 0.7241 GB, free: 5.824 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.622e-05/1.372, allocations: 40 kB / 0.7241 GB, free: 5.785 MB / 442.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01651/1.389, allocations: 8.012 MB / 0.732 GB, free: 14.88 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.389, allocations: 67.09 kB / 0.732 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/1.389, allocations: 139.9 kB / 0.7322 GB, free: 14.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003382/1.392, allocations: 1.021 MB / 0.7332 GB, free: 13.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005984/1.398, allocations: 1.484 MB / 0.7346 GB, free: 12.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009317/1.408, allocations: 6.525 MB / 0.741 GB, free: 6.793 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005594/1.413, allocations: 216.7 kB / 0.7412 GB, free: 6.609 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001425/1.415, allocations: 395.8 kB / 0.7416 GB, free: 6.227 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * 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 (804): * Single equations (assignments): 800 * 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.001156/1.416, allocations: 461.3 kB / 0.742 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007225/1.423, allocations: 3.72 MB / 0.7456 GB, free: 2.617 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/1.424, allocations: 387 kB / 0.746 GB, free: 2.234 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2953/1.72, allocations: 3.467 MB / 0.7494 GB, free: 83.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.724e-05/1.72, allocations: 21.62 kB / 0.7494 GB, free: 83.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.173e-05/1.72, allocations: 9.344 kB / 0.7494 GB, free: 83.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.485e-05/1.72, allocations: 9.891 kB / 0.7494 GB, free: 83.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/1.738, allocations: 8.924 MB / 0.7581 GB, free: 82.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.152e-05/1.738, allocations: 7.719 kB / 0.7582 GB, free: 82.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/1.74, allocations: 364.2 kB / 0.7585 GB, free: 82.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002685/1.742, allocations: 0.784 MB / 0.7593 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003226/1.743, allocations: 13.94 kB / 0.7593 GB, free: 82.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00648/1.749, allocations: 5.258 MB / 0.7644 GB, free: 81.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/1.749, allocations: 6.375 kB / 0.7644 GB, free: 81.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/1.76, allocations: 6.901 MB / 0.7712 GB, free: 79.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/1.761, allocations: 420.5 kB / 0.7716 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006317/1.762, allocations: 11.17 kB / 0.7716 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/1.764, allocations: 65.27 kB / 0.7716 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/1.764, allocations: 156 kB / 0.7718 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/1.764, allocations: 64.84 kB / 0.7718 GB, free: 79.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003935/1.768, allocations: 2.334 MB / 0.7741 GB, free: 79.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.768, allocations: 2 kB / 0.7741 GB, free: 79.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006379/1.774, allocations: 1.028 MB / 0.7751 GB, free: 79.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (185): * Single equations (assignments): 181 * 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.01249/1.787, allocations: 8.967 MB / 0.7839 GB, free: 76.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009555/1.797, allocations: 5.106 MB / 0.7889 GB, free: 75.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/1.797, allocations: 1.656 kB / 0.7889 GB, free: 75.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002775/1.799, allocations: 1.738 MB / 0.7906 GB, free: 74.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/1.802, allocations: 444.5 kB / 0.791 GB, free: 74.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03031/1.833, allocations: 10.48 MB / 0.8012 GB, free: 70.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005964/1.839, allocations: 3.981 MB / 0.8051 GB, free: 69.04 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005679/1.844, allocations: 2.036 MB / 0.8071 GB, free: 69 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00328/1.848, allocations: 2.291 MB / 0.8093 GB, free: 67.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/1.848, allocations: 0 / 0.8093 GB, free: 67.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1351/1.983, allocations: 85.36 MB / 0.8927 GB, free: 20.57 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/1.983, allocations: 158.2 kB / 0.8929 GB, free: 20.37 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.474/6.457, allocations: 0 / 0.8929 GB, free: 20.37 MB / 458.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)