Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_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.001019/0.001019, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007106/0.0007107, allocations: 98.61 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000205/0.0002051, allocations: 11.98 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1827, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.03511/0.2178, allocations: 50.27 MB / 458.4 MB, free: 9.27 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02136/0.2392, allocations: 11.32 MB / 469.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00752/0.2468, allocations: 243.4 kB / 470 MB, free: 13.69 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006828/0.2536, allocations: 2.57 MB / 472.5 MB, free: 11.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01727/0.271, allocations: 7.724 MB / 480.3 MB, free: 3.352 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003898/0.2749, allocations: 0.9711 MB / 481.2 MB, free: 2.379 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.234/0.5089, allocations: 62.09 MB / 0.5306 GB, free: 31.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007205/0.5162, allocations: 7.074 MB / 0.5375 GB, free: 26.47 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002217/0.5184, allocations: 1.652 MB / 0.5391 GB, free: 25.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/0.521, allocations: 2.54 MB / 0.5416 GB, free: 23.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005304/0.5216, allocations: 184 kB / 0.5418 GB, free: 23.37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.5236, allocations: 1.38 MB / 0.5431 GB, free: 22.31 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001536/0.5251, allocations: 2.192 MB / 0.5452 GB, free: 20.71 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001876/0.527, allocations: 2.398 MB / 0.5476 GB, free: 19.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005586/0.5326, allocations: 7.551 MB / 0.555 GB, free: 13.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.5327, allocations: 0 / 0.555 GB, free: 13.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5327, allocations: 0 / 0.555 GB, free: 13.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000205/0.5329, allocations: 0 / 0.555 GB, free: 13.31 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.009093/0.542, allocations: 5.094 MB / 0.5599 GB, free: 8.586 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.542, allocations: 8.031 kB / 0.5599 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001698/0.5437, allocations: 0.9235 MB / 0.5608 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03409/0.5778, allocations: 6.109 MB / 0.5668 GB, free: 2.293 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007468/0.5853, allocations: 4.174 MB / 0.5709 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.5856, allocations: 303.3 kB / 0.5712 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009366/0.5865, allocations: 450.5 kB / 0.5716 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/0.6054, allocations: 12.3 MB / 0.5836 GB, free: 5.254 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001213/0.6055, allocations: 51.83 kB / 0.5837 GB, free: 5.227 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004191/0.6059, allocations: 193.5 kB / 0.5838 GB, free: 5.172 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00304/0.609, allocations: 2.032 MB / 0.5858 GB, free: 3.512 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01998/0.629, allocations: 10.33 MB / 0.5959 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05014/0.6792, allocations: 44.15 MB / 0.639 GB, free: 2.145 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.6913, allocations: 4.833 MB / 0.6438 GB, free: 13.19 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002541/0.6938, allocations: 1.964 MB / 0.6457 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.7049, allocations: 7 MB / 0.6525 GB, free: 4.004 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.705, allocations: 52.31 kB / 0.6526 GB, free: 3.945 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.94e-06/0.705, allocations: 0 / 0.6526 GB, free: 3.945 MB / 458.7 MB Notification: Performance of matching and sorting (n=223): time 0.06416/0.7692, allocations: 19.17 MB / 0.6713 GB, free: 0.7812 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.767e-05/0.7693, allocations: 213 kB / 0.6715 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007005/0.7763, allocations: 4.458 MB / 0.6758 GB, free: 12.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004046/0.7768, allocations: 53.7 kB / 0.6759 GB, free: 12.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002365/0.7792, allocations: 3.561 MB / 0.6794 GB, free: 8.461 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009654/0.7802, allocations: 0.8351 MB / 0.6802 GB, free: 7.633 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005237/0.7807, allocations: 134.8 kB / 0.6803 GB, free: 7.504 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000453/0.7812, allocations: 0.5707 MB / 0.6809 GB, free: 6.926 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003521/0.7847, allocations: 2.199 MB / 0.683 GB, free: 4.723 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1672/0.9519, allocations: 5.948 MB / 0.6888 GB, free: 186.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009838/0.9618, allocations: 8.892 MB / 0.6975 GB, free: 180 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000213/0.962, allocations: 37.97 kB / 0.6975 GB, free: 180 MB / 490.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01582/0.9778, allocations: 8.984 MB / 0.7063 GB, free: 176.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001787/0.9781, allocations: 66.16 kB / 0.7064 GB, free: 176.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002079/0.9783, allocations: 129.2 kB / 0.7065 GB, free: 176.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003376/0.9817, allocations: 1.206 MB / 0.7077 GB, free: 176.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004005/0.9857, allocations: 1.41 MB / 0.7091 GB, free: 176.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008893/0.9946, allocations: 7.534 MB / 0.7164 GB, free: 172.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/0.9987, allocations: 340.8 kB / 0.7167 GB, free: 172 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007488/0.9995, allocations: 377.5 kB / 0.7171 GB, free: 171.7 MB / 490.7 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.00382/1.003, allocations: 2.48 MB / 0.7195 GB, free: 169.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007611/1.004, allocations: 410.3 kB / 0.7199 GB, free: 169.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006835/1.011, allocations: 3.878 MB / 0.7237 GB, free: 166.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/1.011, allocations: 27.61 kB / 0.7237 GB, free: 166 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/1.011, allocations: 8 kB / 0.7237 GB, free: 166 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/1.011, allocations: 11.95 kB / 0.7238 GB, free: 166 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/1.028, allocations: 10.17 MB / 0.7337 GB, free: 155.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/1.028, allocations: 10.94 kB / 0.7337 GB, free: 155.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/1.029, allocations: 343.4 kB / 0.734 GB, free: 155.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002953/1.032, allocations: 0.9928 MB / 0.735 GB, free: 154.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/1.032, allocations: 44 kB / 0.735 GB, free: 154.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007277/1.039, allocations: 6.207 MB / 0.7411 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.039, allocations: 15.84 kB / 0.7411 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008981/1.048, allocations: 6.591 MB / 0.7476 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009191/1.049, allocations: 463.6 kB / 0.748 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006568/1.05, allocations: 43.98 kB / 0.748 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/1.052, allocations: 105 kB / 0.7481 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004181/1.052, allocations: 145.1 kB / 0.7483 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.052, allocations: 60 kB / 0.7483 GB, free: 140.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003656/1.056, allocations: 2.809 MB / 0.7511 GB, free: 137.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.056, allocations: 0 / 0.7511 GB, free: 137.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004475/1.061, allocations: 1.17 MB / 0.7522 GB, free: 136.8 MB / 490.7 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.009001/1.07, allocations: 7.324 MB / 0.7594 GB, free: 129.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006691/1.076, allocations: 5.477 MB / 0.7647 GB, free: 123.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.076, allocations: 0 / 0.7647 GB, free: 123.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002019/1.078, allocations: 1.823 MB / 0.7665 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00565/1.084, allocations: 0.5382 MB / 0.767 GB, free: 121.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05495/1.139, allocations: 41.27 MB / 0.8073 GB, free: 76.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003917/1.143, allocations: 3.881 MB / 0.8111 GB, free: 72.28 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002462/1.145, allocations: 2.327 MB / 0.8134 GB, free: 69.95 MB / 490.7 MB Notification: Performance of SimCode: time 6.21e-07/1.145, allocations: 0 / 0.8134 GB, free: 69.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.923/9.068, allocations: 109.9 MB / 0.9207 GB, free: 149.3 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)