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.001136/0.001136, allocations: 100.4 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 199.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002566/0.0002569, allocations: 8 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2562/0.3698, allocations: 47.44 MB / 405.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0384/0.4082, allocations: 11.81 MB / 417.5 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01509/0.4234, allocations: 239 kB / 417.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009721/0.4332, allocations: 2.345 MB / 420 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02645/0.4596, allocations: 6.783 MB / 426.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.4647, allocations: 0.8931 MB / 427.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.06821/0.5329, allocations: 48.6 MB / 476.3 MB, free: 5.289 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01133/0.5443, allocations: 6.513 MB / 482.8 MB, free: 14.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003167/0.5475, allocations: 1.332 MB / 484.1 MB, free: 13.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003177/0.5507, allocations: 1.76 MB / 485.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.5519, allocations: 184 kB / 486.1 MB, free: 11.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002997/0.5549, allocations: 1.147 MB / 487.2 MB, free: 10.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002778/0.5577, allocations: 2.03 MB / 489.3 MB, free: 8.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.5598, allocations: 1.038 MB / 490.3 MB, free: 7.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009252/0.5691, allocations: 7.544 MB / 497.8 MB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.5691, allocations: 0 / 497.8 MB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5691, allocations: 0 / 497.8 MB, free: 15.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003039/0.5694, allocations: 0 / 497.8 MB, free: 15.64 MB / 414.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.01211/0.5816, allocations: 5.206 MB / 0.4913 GB, free: 10.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.5816, allocations: 8.031 kB / 0.4913 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00279/0.5844, allocations: 0.94 MB / 0.4922 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04156/0.626, allocations: 7.95 MB / 0.5 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009456/0.6355, allocations: 3.906 MB / 0.5038 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000247/0.6358, allocations: 307.9 kB / 0.5041 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/0.6372, allocations: 439.6 kB / 0.5045 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/0.6601, allocations: 12.47 MB / 0.5167 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/0.6603, allocations: 55.44 kB / 0.5167 GB, free: 15.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004906/0.6608, allocations: 191.8 kB / 0.5169 GB, free: 15.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/0.6637, allocations: 2.039 MB / 0.5189 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/0.6848, allocations: 10.54 MB / 0.5292 GB, free: 2.684 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2884/0.9732, allocations: 44.27 MB / 0.5724 GB, free: 115.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/0.9855, allocations: 4.861 MB / 0.5772 GB, free: 113.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/0.998, allocations: 7.173 MB / 0.5842 GB, free: 108.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.9981, allocations: 57.22 kB / 0.5842 GB, free: 108.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.158e-06/0.9981, allocations: 1.219 kB / 0.5842 GB, free: 108.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05907/1.057, allocations: 19.35 MB / 0.6031 GB, free: 90.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/1.057, allocations: 209.9 kB / 0.6033 GB, free: 89.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005857/1.063, allocations: 4.707 MB / 0.6079 GB, free: 85.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003798/1.064, allocations: 57.7 kB / 0.608 GB, free: 85.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/1.065, allocations: 3.56 MB / 0.6114 GB, free: 81.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007802/1.066, allocations: 0.8395 MB / 0.6123 GB, free: 80.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004109/1.066, allocations: 128 kB / 0.6124 GB, free: 80.65 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003127/1.067, allocations: 0.5668 MB / 0.6129 GB, free: 80.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002832/1.07, allocations: 2.208 MB / 0.6151 GB, free: 77.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003883/1.073, allocations: 5.929 MB / 0.6209 GB, free: 70.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003747/1.077, allocations: 3.565 MB / 0.6244 GB, free: 66.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.935e-05/1.077, allocations: 36 kB / 0.6244 GB, free: 66.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01202/1.089, allocations: 8.994 MB / 0.6332 GB, free: 57.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.138e-05/1.089, allocations: 67.98 kB / 0.6333 GB, free: 57.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.373e-05/1.089, allocations: 132 kB / 0.6334 GB, free: 57.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003034/1.093, allocations: 1.214 MB / 0.6346 GB, free: 56.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/1.096, allocations: 1.419 MB / 0.6359 GB, free: 54.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008517/1.105, allocations: 7.752 MB / 0.6435 GB, free: 46.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004104/1.109, allocations: 348.8 kB / 0.6439 GB, free: 46.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005137/1.109, allocations: 376 kB / 0.6442 GB, free: 46.05 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.002847/1.112, allocations: 2.485 MB / 0.6466 GB, free: 43.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005322/1.113, allocations: 407.7 kB / 0.647 GB, free: 43.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006188/1.119, allocations: 3.869 MB / 0.6508 GB, free: 39.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/1.119, allocations: 24 kB / 0.6508 GB, free: 39.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/1.119, allocations: 12 kB / 0.6508 GB, free: 39.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.797e-05/1.119, allocations: 11.95 kB / 0.6508 GB, free: 39.22 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/1.136, allocations: 10.2 MB / 0.6608 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/1.136, allocations: 4 kB / 0.6608 GB, free: 28.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/1.137, allocations: 351.4 kB / 0.6611 GB, free: 28.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003286/1.14, allocations: 0.9883 MB / 0.6621 GB, free: 27.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/1.141, allocations: 49 kB / 0.6622 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007284/1.148, allocations: 6.431 MB / 0.6684 GB, free: 20.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.148, allocations: 12.34 kB / 0.6685 GB, free: 20.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008704/1.157, allocations: 7.229 MB / 0.6755 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/1.158, allocations: 467.7 kB / 0.676 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006115/1.159, allocations: 43.94 kB / 0.676 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/1.16, allocations: 112.9 kB / 0.6761 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/1.161, allocations: 149 kB / 0.6762 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.161, allocations: 64.69 kB / 0.6763 GB, free: 12.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003938/1.165, allocations: 2.996 MB / 0.6792 GB, free: 9.602 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.165, allocations: 0 / 0.6792 GB, free: 9.602 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005133/1.17, allocations: 1.192 MB / 0.6804 GB, free: 8.418 MB / 446.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.009626/1.179, allocations: 9.073 MB / 0.6893 GB, free: 15.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00852/1.188, allocations: 5.476 MB / 0.6946 GB, free: 9.715 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.188, allocations: 6 kB / 0.6946 GB, free: 9.711 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/1.191, allocations: 1.837 MB / 0.6964 GB, free: 7.863 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/1.193, allocations: 0.5154 MB / 0.6969 GB, free: 7.348 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2291/1.422, allocations: 113.1 MB / 0.8074 GB, free: 48.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006715/1.429, allocations: 3.981 MB / 0.8113 GB, free: 47.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005312/1.434, allocations: 1.935 MB / 0.8132 GB, free: 47.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003274/1.438, allocations: 2.296 MB / 0.8154 GB, free: 45.44 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/1.438, allocations: 0 / 0.8154 GB, free: 45.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3396/1.777, allocations: 90.36 MB / 0.9037 GB, free: 128.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/1.778, allocations: 220.6 kB / 0.9039 GB, free: 128.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.448/6.225, allocations: 0 / 0.9039 GB, free: 128.6 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat