Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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.Elementary.Surfaces,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001078/0.001078, allocations: 194.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009026/0.0009025, allocations: 98.33 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.103e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 51.47 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4142/0.5305, allocations: 94.6 MB / 489.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.5308, allocations: 86.88 kB / 490 MB, free: 14.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1701/0.7009, allocations: 67.39 MB / 0.5443 GB, free: 15.92 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.7009, allocations: 4 kB / 0.5443 GB, free: 15.92 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002346/0.7012, allocations: 60 kB / 0.5443 GB, free: 15.86 MB / 426.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.009951/0.7111, allocations: 3.092 MB / 0.5474 GB, free: 12.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.7112, allocations: 8.031 kB / 0.5474 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009107/0.7203, allocations: 1.951 MB / 0.5493 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005344/0.7257, allocations: 1.973 MB / 0.5512 GB, free: 8.715 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.7259, allocations: 100 kB / 0.5513 GB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/0.7273, allocations: 183.9 kB / 0.5515 GB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008125/0.7354, allocations: 4.189 MB / 0.5556 GB, free: 4.242 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01443/0.7499, allocations: 6.923 MB / 0.5623 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001749/0.7501, allocations: 43.56 kB / 0.5624 GB, free: 12.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00122/0.7514, allocations: 28 kB / 0.5624 GB, free: 12.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001239/0.7526, allocations: 0.7391 MB / 0.5631 GB, free: 11.65 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3093/1.062, allocations: 33.71 MB / 0.596 GB, free: 69.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/1.063, allocations: 1.366 MB / 0.5974 GB, free: 68.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/1.064, allocations: 431.4 kB / 0.5978 GB, free: 68.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002974/1.064, allocations: 345 kB / 0.5981 GB, free: 68.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/1.064, allocations: 46.77 kB / 0.5982 GB, free: 68.35 MB / 442.7 MB Notification: Performance of pre-optimization done (n=87): time 2.915e-06/1.064, allocations: 6.188 kB / 0.5982 GB, free: 68.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=87): time 0.002482/1.067, allocations: 1.23 MB / 0.5994 GB, free: 68.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/1.067, allocations: 193.1 kB / 0.5995 GB, free: 67.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004165/1.071, allocations: 2.935 MB / 0.6024 GB, free: 67.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.551e-05/1.071, allocations: 28.73 kB / 0.6024 GB, free: 67.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002117/1.073, allocations: 2.757 MB / 0.6051 GB, free: 66.33 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004923/1.074, allocations: 380 kB / 0.6055 GB, free: 66.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/1.074, allocations: 0 / 0.6055 GB, free: 66.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003362/1.074, allocations: 0.5104 MB / 0.606 GB, free: 65.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/1.076, allocations: 1.154 MB / 0.6071 GB, free: 65.85 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003407/1.079, allocations: 4.621 MB / 0.6116 GB, free: 61.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00312/1.082, allocations: 2.324 MB / 0.6139 GB, free: 61.26 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.724e-05/1.082, allocations: 38.84 kB / 0.6139 GB, free: 61.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.007409/1.09, allocations: 4.948 MB / 0.6188 GB, free: 60.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.994e-05/1.09, allocations: 58.16 kB / 0.6188 GB, free: 60.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/1.09, allocations: 125.8 kB / 0.6189 GB, free: 60.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/1.09, allocations: 182.6 kB / 0.6191 GB, free: 60.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002842/1.093, allocations: 1.187 MB / 0.6203 GB, free: 60.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000129/1.093, allocations: 246 kB / 0.6205 GB, free: 60.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/1.097, allocations: 0.6105 MB / 0.6211 GB, free: 60.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004713/1.097, allocations: 364.2 kB / 0.6215 GB, free: 60.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (627): * Single equations (assignments): 624 * 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.0005838/1.098, allocations: 414 kB / 0.6219 GB, free: 59.82 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001449/1.099, allocations: 1.014 MB / 0.6228 GB, free: 59.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000304/1.1, allocations: 277.8 kB / 0.6231 GB, free: 59.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008401/1.1, allocations: 478.8 kB / 0.6236 GB, free: 59.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/1.1, allocations: 11.41 kB / 0.6236 GB, free: 59.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/1.1, allocations: 5.922 kB / 0.6236 GB, free: 59.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-06/1.1, allocations: 5.156 kB / 0.6236 GB, free: 59.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005114/1.106, allocations: 2.863 MB / 0.6264 GB, free: 58.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/1.106, allocations: 3.781 kB / 0.6264 GB, free: 58.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/1.106, allocations: 114.7 kB / 0.6265 GB, free: 58.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.561e-05/1.106, allocations: 6.375 kB / 0.6265 GB, free: 58.78 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/1.106, allocations: 6.219 kB / 0.6265 GB, free: 58.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/1.106, allocations: 13.38 kB / 0.6265 GB, free: 58.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.106, allocations: 4.406 kB / 0.6265 GB, free: 58.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/1.109, allocations: 2.381 MB / 0.6288 GB, free: 57.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000773/1.109, allocations: 455 kB / 0.6293 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/1.11, allocations: 8.188 kB / 0.6293 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008605/1.11, allocations: 37.31 kB / 0.6293 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/1.111, allocations: 51.84 kB / 0.6294 GB, free: 57.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.789e-05/1.111, allocations: 29.03 kB / 0.6294 GB, free: 57.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003684/1.114, allocations: 2.01 MB / 0.6314 GB, free: 56.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.114, allocations: 0 / 0.6314 GB, free: 56.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00492/1.119, allocations: 0.7494 MB / 0.6321 GB, free: 56.76 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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.002683/1.122, allocations: 3.813 MB / 0.6358 GB, free: 53.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004772/1.127, allocations: 2.632 MB / 0.6384 GB, free: 53.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.127, allocations: 2.031 kB / 0.6384 GB, free: 53.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/1.127, allocations: 421.8 kB / 0.6388 GB, free: 52.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/1.129, allocations: 312.4 kB / 0.6391 GB, free: 52.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01689/1.146, allocations: 6.303 MB / 0.6452 GB, free: 50.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003058/1.149, allocations: 2.764 MB / 0.6479 GB, free: 49.36 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004714/1.154, allocations: 1.658 MB / 0.6496 GB, free: 49.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001813/1.156, allocations: 1.483 MB / 0.651 GB, free: 48.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/1.156, allocations: 0 / 0.651 GB, free: 48.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09022/1.246, allocations: 53.44 MB / 0.7032 GB, free: 25.09 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/1.246, allocations: 154.9 kB / 0.7034 GB, free: 24.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.743/4.989, allocations: 0 / 0.7034 GB, free: 24.89 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat does not exist to compare? outputFormat=mat