Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Elementary.Surfaces,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",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.001283/0.001283, allocations: 91.89 kB / 16.32 MB, free: 6.461 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.001359/0.001359, allocations: 183 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.3 MB / 241.2 MB, free: 14.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003615, allocations: 4 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1311, allocations: 50.41 MB / 351.3 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.2301/0.3612, allocations: 30.29 MB / 381.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.3757, allocations: 6.296 MB / 387.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006418/0.3821, allocations: 138.2 kB / 388.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006084/0.3882, allocations: 1.545 MB / 389.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01403/0.4023, allocations: 4.564 MB / 394.2 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.4042, allocations: 208.2 kB / 394.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.04179/0.446, allocations: 31.07 MB / 425.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004516/0.4506, allocations: 2.428 MB / 427.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.4523, allocations: 0.8444 MB / 428.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002031/0.4543, allocations: 1.363 MB / 430.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003645/0.4547, allocations: 96 kB / 430.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.4559, allocations: 0.4914 MB / 430.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001232/0.4572, allocations: 1.231 MB / 431.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006534/0.4578, allocations: 0.6323 MB / 432.5 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003695/0.4615, allocations: 3.698 MB / 436.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4616, allocations: 0 / 436.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.4616, allocations: 0 / 436.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001226/0.4617, allocations: 0 / 436.2 MB, free: 15.48 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: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.00546/0.4672, allocations: 3.182 MB / 439.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.4672, allocations: 12.03 kB / 439.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009561/0.4682, allocations: 0.546 MB / 440 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004893/0.4731, allocations: 1.695 MB / 441.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003183/0.4763, allocations: 1.623 MB / 443.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.4765, allocations: 147.8 kB / 443.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000413/0.4769, allocations: 195.9 kB / 443.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.4878, allocations: 6.964 MB / 450.6 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.447e-05/0.4879, allocations: 27.75 kB / 450.6 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/0.4882, allocations: 103.9 kB / 450.7 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002092/0.4903, allocations: 1.566 MB / 452.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009404/0.4997, allocations: 5.454 MB / 457.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03003/0.5298, allocations: 27.38 MB / 485.1 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/0.5324, allocations: 1.585 MB / 486.7 MB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006089/0.5331, allocations: 462.9 kB / 487.2 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003526/0.5366, allocations: 2.682 MB / 489.8 MB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.5366, allocations: 38.67 kB / 489.9 MB, free: 7.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.916e-06/0.5367, allocations: 3.938 kB / 489.9 MB, free: 7.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.003527/0.5402, allocations: 1.655 MB / 491.5 MB, free: 6.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/0.5403, allocations: 191.9 kB / 491.7 MB, free: 5.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004892/0.5452, allocations: 3.717 MB / 495.4 MB, free: 2.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.126e-05/0.5453, allocations: 33.7 kB / 495.5 MB, free: 2.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002115/0.5474, allocations: 2.718 MB / 498.2 MB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.5478, allocations: 363.9 kB / 498.5 MB, free: 15.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.548, allocations: 95.98 kB / 498.6 MB, free: 15.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003047/0.5483, allocations: 0.5084 MB / 499.1 MB, free: 14.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001773/0.5501, allocations: 1.18 MB / 0.4886 GB, free: 13.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004324/0.5544, allocations: 4.541 MB / 0.493 GB, free: 7.055 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/0.5576, allocations: 2.289 MB / 0.4953 GB, free: 4.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.016e-05/0.5577, allocations: 36 kB / 0.4953 GB, free: 4.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.00921/0.5669, allocations: 5.417 MB / 0.5006 GB, free: 15.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.5671, allocations: 60.06 kB / 0.5006 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001602/0.5673, allocations: 120 kB / 0.5008 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.5675, allocations: 176.2 kB / 0.5009 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/0.5705, allocations: 1.103 MB / 0.502 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002015/0.5707, allocations: 239 kB / 0.5022 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003699/0.5744, allocations: 0.7114 MB / 0.5029 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004099/0.5748, allocations: 320 kB / 0.5032 GB, free: 12.59 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (597): * Single equations (assignments): 594 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002827/0.5776, allocations: 1.712 MB / 0.5049 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006519/0.5783, allocations: 308 kB / 0.5052 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009824/0.5793, allocations: 0.4933 MB / 0.5057 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/0.5793, allocations: 12 kB / 0.5057 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.5793, allocations: 0 / 0.5057 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.5794, allocations: 7.984 kB / 0.5057 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005192/0.5846, allocations: 3.232 MB / 0.5089 GB, free: 6.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.5846, allocations: 4.281 kB / 0.5089 GB, free: 6.727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.5851, allocations: 107.8 kB / 0.509 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.096e-05/0.5851, allocations: 4 kB / 0.509 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.5851, allocations: 20 kB / 0.509 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.347e-06/0.5852, allocations: 4 kB / 0.509 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.5852, allocations: 7.938 kB / 0.509 GB, free: 6.586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.5875, allocations: 2.029 MB / 0.511 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008856/0.5884, allocations: 0.5319 MB / 0.5115 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.5886, allocations: 19.98 kB / 0.5115 GB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000782/0.5894, allocations: 56.03 kB / 0.5116 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.5895, allocations: 43.84 kB / 0.5116 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.5896, allocations: 27.98 kB / 0.5116 GB, free: 3.805 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003554/0.5931, allocations: 2.365 MB / 0.514 GB, free: 1.457 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5932, allocations: 4 kB / 0.514 GB, free: 1.453 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004129/0.5973, allocations: 0.8178 MB / 0.5148 GB, free: 0.6328 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.v,position.s) * 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 (57): * Single equations (assignments): 54 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002943/0.6002, allocations: 2.669 MB / 0.5174 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004891/0.6052, allocations: 2.754 MB / 0.52 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6052, allocations: 4 kB / 0.5201 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005694/0.6058, allocations: 405.1 kB / 0.5204 GB, free: 10.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/0.6079, allocations: 373.2 kB / 0.5208 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2656/0.8735, allocations: 54.75 MB / 0.5743 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/0.8756, allocations: 2.684 MB / 0.5769 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003201/0.8788, allocations: 1.549 MB / 0.5784 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/0.8803, allocations: 1.505 MB / 0.5799 GB, free: 99.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.433e-06/0.8803, allocations: 0 / 0.5799 GB, free: 99.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07937/0.9597, allocations: 58.62 MB / 0.6371 GB, free: 41.86 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001431/0.9598, allocations: 189.4 kB / 0.6373 GB, free: 41.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.852/4.812, allocations: 0 / 0.6373 GB, free: 41.62 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat does not exist to compare? outputFormat=mat