Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001052/0.001053, allocations: 96.38 kB / 16.93 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 179.7 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004791/0.0004792, allocations: 8 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1154, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.04759/0.163, allocations: 47.47 MB / 375.9 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2595/0.4226, allocations: 11.77 MB / 387.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01544/0.4381, allocations: 241 kB / 387.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01125/0.4494, allocations: 2.346 MB / 390.2 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0264/0.4759, allocations: 6.78 MB / 397 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004367/0.4802, allocations: 0.8989 MB / 397.9 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03814/0.5184, allocations: 27.29 MB / 425.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01005/0.5285, allocations: 6.527 MB / 431.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003359/0.5319, allocations: 1.345 MB / 433.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003355/0.5353, allocations: 1.764 MB / 434.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.5363, allocations: 184 kB / 435 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002985/0.5393, allocations: 1.147 MB / 436.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002296/0.5416, allocations: 2.039 MB / 438.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.5432, allocations: 1.044 MB / 439.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009723/0.5529, allocations: 7.57 MB / 446.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.553, allocations: 0 / 446.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.553, allocations: 0 / 446.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000354/0.5533, allocations: 0 / 446.8 MB, free: 10.79 MB / 350.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.01537/0.5687, allocations: 5.222 MB / 452 MB, free: 5.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.5688, allocations: 8.031 kB / 452.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003635/0.5724, allocations: 0.9304 MB / 453 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04294/0.6154, allocations: 7.948 MB / 460.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.6261, allocations: 4.235 MB / 465.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002826/0.6264, allocations: 309.9 kB / 465.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001767/0.6282, allocations: 448.5 kB / 465.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02532/0.6535, allocations: 12.47 MB / 478.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/0.6537, allocations: 47.59 kB / 478.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005285/0.6542, allocations: 192.6 kB / 478.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003141/0.6574, allocations: 2.034 MB / 480.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02263/0.68, allocations: 10.52 MB / 491.2 MB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06228/0.7424, allocations: 44.32 MB / 0.5229 GB, free: 2.828 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01282/0.7552, allocations: 4.852 MB / 0.5277 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01326/0.7685, allocations: 7.114 MB / 0.5346 GB, free: 6.492 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.7686, allocations: 51.5 kB / 0.5347 GB, free: 6.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.058e-06/0.7686, allocations: 5.203 kB / 0.5347 GB, free: 6.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.2683/1.037, allocations: 19.59 MB / 0.5538 GB, free: 160.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/1.037, allocations: 201.2 kB / 0.554 GB, free: 160.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006411/1.043, allocations: 4.745 MB / 0.5586 GB, free: 159 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004204/1.044, allocations: 58.61 kB / 0.5587 GB, free: 158.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001809/1.046, allocations: 3.568 MB / 0.5622 GB, free: 156.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007116/1.046, allocations: 0.8452 MB / 0.563 GB, free: 155.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/1.047, allocations: 123.4 kB / 0.5631 GB, free: 155.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002385/1.047, allocations: 0.568 MB / 0.5637 GB, free: 155.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/1.05, allocations: 2.197 MB / 0.5658 GB, free: 154.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003866/1.054, allocations: 5.927 MB / 0.5716 GB, free: 148.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004091/1.058, allocations: 3.565 MB / 0.5751 GB, free: 147.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.938e-05/1.058, allocations: 34.75 kB / 0.5751 GB, free: 147.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01351/1.071, allocations: 8.979 MB / 0.5839 GB, free: 139 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.268e-05/1.071, allocations: 60.22 kB / 0.5839 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/1.071, allocations: 136 kB / 0.5841 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003155/1.075, allocations: 1.222 MB / 0.5853 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/1.079, allocations: 1.415 MB / 0.5866 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008656/1.087, allocations: 7.743 MB / 0.5942 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00525/1.093, allocations: 353.2 kB / 0.5945 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009165/1.094, allocations: 376.5 kB / 0.5949 GB, free: 127.5 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.00376/1.097, allocations: 2.492 MB / 0.5973 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007816/1.098, allocations: 406.7 kB / 0.5977 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006275/1.104, allocations: 3.87 MB / 0.6015 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.941e-05/1.105, allocations: 25.33 kB / 0.6015 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/1.105, allocations: 8 kB / 0.6015 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/1.105, allocations: 15.95 kB / 0.6016 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0166/1.121, allocations: 10.21 MB / 0.6115 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/1.121, allocations: 8.594 kB / 0.6115 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/1.123, allocations: 351.4 kB / 0.6119 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002903/1.126, allocations: 0.9801 MB / 0.6128 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/1.126, allocations: 55.38 kB / 0.6129 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007314/1.133, allocations: 6.418 MB / 0.6191 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.133, allocations: 11.94 kB / 0.6192 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008794/1.142, allocations: 7.225 MB / 0.6262 GB, free: 94.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001922/1.144, allocations: 0.7443 MB / 0.6269 GB, free: 94.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005152/1.144, allocations: 44.06 kB / 0.627 GB, free: 94.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/1.146, allocations: 111.9 kB / 0.6271 GB, free: 94.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/1.146, allocations: 133 kB / 0.6272 GB, free: 93.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/1.146, allocations: 73.7 kB / 0.6273 GB, free: 93.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003694/1.15, allocations: 3.02 MB / 0.6302 GB, free: 90.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.15, allocations: 0 / 0.6302 GB, free: 90.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005026/1.155, allocations: 1.2 MB / 0.6314 GB, free: 89.63 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.009114/1.164, allocations: 9.084 MB / 0.6403 GB, free: 80.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007488/1.172, allocations: 5.474 MB / 0.6456 GB, free: 74.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.172, allocations: 0 / 0.6456 GB, free: 74.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002244/1.174, allocations: 1.824 MB / 0.6474 GB, free: 73.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/1.177, allocations: 0.511 MB / 0.6479 GB, free: 72.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2164/1.393, allocations: 113.2 MB / 0.7585 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005675/1.399, allocations: 3.98 MB / 0.7623 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005027/1.404, allocations: 1.948 MB / 0.7642 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002762/1.407, allocations: 2.301 MB / 0.7665 GB, free: 107 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/1.407, allocations: 0 / 0.7665 GB, free: 107 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1206/1.528, allocations: 90.89 MB / 0.8553 GB, free: 28.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/1.528, allocations: 219.8 kB / 0.8555 GB, free: 27.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.75/6.277, allocations: 0.6562 kB / 0.8555 GB, free: 27.89 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat