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/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.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/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 94 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001783/0.001782, allocations: 208 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002326, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09602, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.1605/0.2565, allocations: 28.69 MB / 386.9 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.2727, allocations: 6.628 MB / 393.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005811/0.2786, allocations: 143.2 kB / 393.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005762/0.2843, allocations: 1.401 MB / 395.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01541/0.2998, allocations: 4.082 MB / 399.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.3015, allocations: 219.9 kB / 399.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03586/0.3374, allocations: 24.47 MB / 423.8 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004417/0.3419, allocations: 2.453 MB / 426.3 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.3432, allocations: 0.685 MB / 427 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.3448, allocations: 0.9966 MB / 428 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003896/0.3452, allocations: 96 kB / 428.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.3464, allocations: 0.4915 MB / 428.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.3475, allocations: 1.145 MB / 429.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006097/0.3481, allocations: 0.6401 MB / 430.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003777/0.3519, allocations: 3.706 MB / 434 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3519, allocations: 0 / 434 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3519, allocations: 0 / 434 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001426/0.352, allocations: 0 / 434 MB, free: 15.5 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.005676/0.3577, allocations: 3.186 MB / 437.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3578, allocations: 8.031 kB / 437.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007497/0.3585, allocations: 0.5344 MB / 437.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006575/0.3651, allocations: 2.023 MB / 439.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003603/0.3688, allocations: 1.631 MB / 441.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.3689, allocations: 155.8 kB / 441.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003879/0.3693, allocations: 195.9 kB / 441.8 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.3803, allocations: 6.983 MB / 448.7 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.417e-05/0.3804, allocations: 27.75 kB / 448.8 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003098/0.3807, allocations: 104 kB / 448.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002051/0.3828, allocations: 1.551 MB / 450.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009459/0.3923, allocations: 5.497 MB / 455.9 MB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03236/0.4247, allocations: 27.4 MB / 483.3 MB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002653/0.4274, allocations: 1.584 MB / 484.9 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004228/0.4316, allocations: 2.686 MB / 487.6 MB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.4317, allocations: 54.48 kB / 487.6 MB, free: 7.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 3.397e-06/0.4317, allocations: 0 / 487.6 MB, free: 7.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.003797/0.4355, allocations: 1.92 MB / 489.6 MB, free: 5.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.4356, allocations: 191.9 kB / 489.8 MB, free: 5.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005421/0.4411, allocations: 3.714 MB / 493.5 MB, free: 2.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.872e-05/0.4412, allocations: 33.7 kB / 493.5 MB, free: 2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002004/0.4432, allocations: 2.721 MB / 496.2 MB, free: 15.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003875/0.4436, allocations: 360 kB / 496.6 MB, free: 14.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.4437, allocations: 95.98 kB / 496.7 MB, free: 14.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003249/0.4441, allocations: 0.5045 MB / 497.2 MB, free: 14.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.4458, allocations: 1.184 MB / 498.4 MB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003728/0.4495, allocations: 4.529 MB / 0.4911 GB, free: 6.832 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.4525, allocations: 2.295 MB / 0.4933 GB, free: 4.539 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.054e-05/0.4525, allocations: 40.22 kB / 0.4934 GB, free: 4.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008076/0.4606, allocations: 5.422 MB / 0.4987 GB, free: 15.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/0.4607, allocations: 56 kB / 0.4987 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.4608, allocations: 124 kB / 0.4988 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.461, allocations: 172 kB / 0.499 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/0.4637, allocations: 1.099 MB / 0.5001 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001569/0.4639, allocations: 235.1 kB / 0.5003 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002892/0.4668, allocations: 0.7115 MB / 0.501 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003286/0.4671, allocations: 316 kB / 0.5013 GB, free: 12.37 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.002082/0.4692, allocations: 1.72 MB / 0.503 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003875/0.4696, allocations: 296.1 kB / 0.5033 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007191/0.4704, allocations: 0.4906 MB / 0.5037 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.935e-05/0.4704, allocations: 12 kB / 0.5038 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.4704, allocations: 4 kB / 0.5038 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.4704, allocations: 3.984 kB / 0.5038 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00464/0.4751, allocations: 3.22 MB / 0.5069 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.4751, allocations: 8.281 kB / 0.5069 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004191/0.4755, allocations: 107.8 kB / 0.507 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.4755, allocations: 8 kB / 0.507 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.4756, allocations: 19.98 kB / 0.507 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.4756, allocations: 7.938 kB / 0.5071 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.4756, allocations: 7.953 kB / 0.5071 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.4777, allocations: 2.381 MB / 0.5094 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008106/0.4785, allocations: 0.5358 MB / 0.5099 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.4787, allocations: 19.94 kB / 0.5099 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008225/0.4795, allocations: 55.95 kB / 0.51 GB, free: 3.246 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.567e-05/0.4796, allocations: 47.84 kB / 0.51 GB, free: 3.199 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.4797, allocations: 27.98 kB / 0.5101 GB, free: 3.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002704/0.4824, allocations: 2.369 MB / 0.5124 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4824, allocations: 0 / 0.5124 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003037/0.4855, allocations: 0.8139 MB / 0.5132 GB, free: 4 kB / 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.002486/0.4879, allocations: 3.793 MB / 0.5169 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.4913, allocations: 2.757 MB / 0.5196 GB, free: 9.363 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4913, allocations: 0 / 0.5196 GB, free: 9.363 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004444/0.4917, allocations: 401.3 kB / 0.5199 GB, free: 8.973 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.493, allocations: 363.9 kB / 0.5203 GB, free: 8.621 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2349/0.7278, allocations: 108.4 MB / 0.6261 GB, free: 29.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002298/0.7302, allocations: 2.753 MB / 0.6288 GB, free: 28.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003315/0.7335, allocations: 1.555 MB / 0.6304 GB, free: 28.28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/0.7349, allocations: 1.493 MB / 0.6318 GB, free: 28.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7349, allocations: 0 / 0.6318 GB, free: 28.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07677/0.8117, allocations: 58.58 MB / 0.689 GB, free: 7.117 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/0.8119, allocations: 183.8 kB / 0.6892 GB, free: 6.883 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.44/4.252, allocations: 0 / 0.6892 GB, free: 6.883 MB / 478.1 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