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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 99.12 kB / 291.5 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003107, allocations: 11.98 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2438, allocations: 50.4 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.3571, allocations: 94.51 MB / 496.1 MB, free: 1.953 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.3574, allocations: 91.95 kB / 496.2 MB, free: 1.863 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3652/0.7226, allocations: 67.57 MB / 0.5505 GB, free: 62.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7227, allocations: 0 / 0.5505 GB, free: 62.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001853/0.7229, allocations: 60 kB / 0.5506 GB, free: 62.74 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: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.008049/0.7309, allocations: 3.343 MB / 0.5539 GB, free: 59.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.731, allocations: 12.03 kB / 0.5539 GB, free: 59.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00183/0.7328, allocations: 0.5891 MB / 0.5544 GB, free: 58.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007275/0.7401, allocations: 1.891 MB / 0.5563 GB, free: 56.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00506/0.7452, allocations: 2.004 MB / 0.5583 GB, free: 54.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.7455, allocations: 234.1 kB / 0.5585 GB, free: 54.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001368/0.7469, allocations: 295.9 kB / 0.5588 GB, free: 54.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.7603, allocations: 7.466 MB / 0.566 GB, free: 45.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.7606, allocations: 43.62 kB / 0.5661 GB, free: 45.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001094/0.7617, allocations: 155.9 kB / 0.5662 GB, free: 45.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008604/0.7626, allocations: 0.7449 MB / 0.567 GB, free: 44.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.7733, allocations: 5.705 MB / 0.5725 GB, free: 39.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03292/0.8063, allocations: 35.32 MB / 0.607 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002652/0.809, allocations: 1.672 MB / 0.6087 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005788/0.8148, allocations: 2.907 MB / 0.6115 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.8149, allocations: 50.5 kB / 0.6115 GB, free: 13.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=83): time 5.209e-06/0.8149, allocations: 0 / 0.6115 GB, free: 13.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=83): time 0.004733/0.8197, allocations: 2.037 MB / 0.6135 GB, free: 11.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.8198, allocations: 213.6 kB / 0.6137 GB, free: 11.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006872/0.8267, allocations: 3.336 MB / 0.617 GB, free: 8.016 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001782/0.8269, allocations: 29.7 kB / 0.617 GB, free: 7.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002282/0.8292, allocations: 2.702 MB / 0.6197 GB, free: 5.238 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004857/0.8297, allocations: 371.8 kB / 0.62 GB, free: 4.871 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.8299, allocations: 96 kB / 0.6201 GB, free: 4.777 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003313/0.8303, allocations: 0.5044 MB / 0.6206 GB, free: 4.266 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/0.8323, allocations: 1.223 MB / 0.6218 GB, free: 3.035 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004382/0.8367, allocations: 4.563 MB / 0.6263 GB, free: 12.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003505/0.8402, allocations: 2.317 MB / 0.6285 GB, free: 10.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.453e-05/0.8403, allocations: 36 kB / 0.6285 GB, free: 10.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01004/0.8504, allocations: 5.51 MB / 0.6339 GB, free: 4.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.178e-05/0.8505, allocations: 60 kB / 0.634 GB, free: 4.828 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/0.8506, allocations: 120 kB / 0.6341 GB, free: 4.711 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/0.8508, allocations: 172.2 kB / 0.6343 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/0.8542, allocations: 1.138 MB / 0.6354 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001887/0.8544, allocations: 239.5 kB / 0.6356 GB, free: 3.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003875/0.8583, allocations: 0.7075 MB / 0.6363 GB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007156/0.859, allocations: 352 kB / 0.6366 GB, free: 2.109 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * 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 (596): * Single equations (assignments): 593 * 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.002937/0.862, allocations: 1.72 MB / 0.6383 GB, free: 388 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006305/0.8626, allocations: 296.1 kB / 0.6386 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.8637, allocations: 0.5021 MB / 0.6391 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/0.8638, allocations: 12 kB / 0.6391 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.8638, allocations: 0 / 0.6391 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.8638, allocations: 7.984 kB / 0.6391 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006478/0.8703, allocations: 3.304 MB / 0.6423 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.8703, allocations: 4 kB / 0.6423 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.8709, allocations: 111.8 kB / 0.6424 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.364e-05/0.8709, allocations: 11.95 kB / 0.6425 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.871, allocations: 12.38 kB / 0.6425 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.366e-05/0.871, allocations: 15.98 kB / 0.6425 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.871, allocations: 7.938 kB / 0.6425 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.8736, allocations: 2.498 MB / 0.6449 GB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/0.8749, allocations: 460.9 kB / 0.6454 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.8752, allocations: 23.94 kB / 0.6454 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009483/0.8762, allocations: 43.97 kB / 0.6454 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.8763, allocations: 47.95 kB / 0.6455 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/0.8763, allocations: 31.94 kB / 0.6455 GB, free: 8.738 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004652/0.881, allocations: 2.384 MB / 0.6478 GB, free: 6.371 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.881, allocations: 0 / 0.6478 GB, free: 6.371 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004766/0.8858, allocations: 0.8333 MB / 0.6486 GB, free: 5.535 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (60): * Single equations (assignments): 57 * 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.003814/0.8897, allocations: 4.073 MB / 0.6526 GB, free: 1.324 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00498/0.8947, allocations: 2.809 MB / 0.6554 GB, free: 14.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.8947, allocations: 0 / 0.6554 GB, free: 14.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006785/0.8954, allocations: 413.8 kB / 0.6558 GB, free: 14.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/0.8977, allocations: 365.8 kB / 0.6561 GB, free: 13.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2535/1.151, allocations: 108.2 MB / 0.7618 GB, free: 36.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002876/1.154, allocations: 2.759 MB / 0.7645 GB, free: 35.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003939/1.158, allocations: 1.576 MB / 0.766 GB, free: 35.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/1.16, allocations: 1.486 MB / 0.7675 GB, free: 35.24 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/1.16, allocations: 4 kB / 0.7675 GB, free: 35.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09024/1.25, allocations: 56.85 MB / 0.823 GB, free: 13.44 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/1.251, allocations: 192.7 kB / 0.8232 GB, free: 13.19 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.879/5.13, allocations: 0 / 0.8232 GB, free: 13.19 MB / 458.7 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