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.001107/0.001107, allocations: 97.25 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 195.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002514/0.0002516, allocations: 4 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1062, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.2476/0.3539, allocations: 30.29 MB / 388.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.3704, allocations: 6.363 MB / 395 MB, free: 232 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007153/0.3775, allocations: 138.4 kB / 395.1 MB, free: 212 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005766/0.3833, allocations: 1.543 MB / 396.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01474/0.3981, allocations: 4.568 MB / 401.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00238/0.4005, allocations: 211.6 kB / 401.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04311/0.4437, allocations: 31.14 MB / 432.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004393/0.4481, allocations: 2.445 MB / 435 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.4499, allocations: 0.8365 MB / 435.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00225/0.4521, allocations: 1.363 MB / 437.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005768/0.4527, allocations: 100 kB / 437.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.4542, allocations: 0.5031 MB / 437.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001467/0.4557, allocations: 1.227 MB / 439 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009557/0.4567, allocations: 0.6323 MB / 439.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004553/0.4613, allocations: 3.694 MB / 443.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4613, allocations: 0 / 443.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4613, allocations: 0 / 443.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001931/0.4615, allocations: 0 / 443.3 MB, free: 6.543 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.006702/0.4682, allocations: 3.193 MB / 446.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.4683, allocations: 8.031 kB / 446.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001284/0.4695, allocations: 0.5421 MB / 447.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005707/0.4753, allocations: 1.746 MB / 448.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.478, allocations: 1.627 MB / 450.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.4782, allocations: 155.8 kB / 450.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/0.4785, allocations: 195.9 kB / 450.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008994/0.4875, allocations: 6.959 MB / 457.8 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.83e-05/0.4876, allocations: 27.75 kB / 457.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000241/0.4878, allocations: 107.9 kB / 457.9 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002131/0.49, allocations: 1.566 MB / 459.5 MB, free: 5.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00958/0.4996, allocations: 5.45 MB / 464.9 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02596/0.5256, allocations: 27.37 MB / 492.3 MB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.5282, allocations: 1.6 MB / 493.9 MB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.5288, allocations: 460.9 kB / 494.3 MB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003211/0.532, allocations: 2.679 MB / 497 MB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.532, allocations: 42.56 kB / 497.1 MB, free: 14.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.955e-06/0.532, allocations: 0 / 497.1 MB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=80): time 0.003359/0.5354, allocations: 1.656 MB / 498.7 MB, free: 13.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/0.5355, allocations: 196 kB / 498.9 MB, free: 12.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004527/0.54, allocations: 3.714 MB / 0.4908 GB, free: 9.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.5401, allocations: 37.7 kB / 0.4909 GB, free: 9.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.542, allocations: 2.718 MB / 0.4935 GB, free: 6.473 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/0.5423, allocations: 363.8 kB / 0.4939 GB, free: 6.113 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.5425, allocations: 92.28 kB / 0.494 GB, free: 6.023 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002797/0.5428, allocations: 0.5161 MB / 0.4945 GB, free: 5.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/0.5444, allocations: 1.177 MB / 0.4956 GB, free: 4.316 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00392/0.5484, allocations: 4.549 MB / 0.5001 GB, free: 14.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003218/0.5516, allocations: 2.29 MB / 0.5023 GB, free: 11.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.676e-05/0.5517, allocations: 40 kB / 0.5023 GB, free: 11.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008371/0.5601, allocations: 5.412 MB / 0.5076 GB, free: 6.297 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.498e-05/0.5602, allocations: 56.97 kB / 0.5077 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/0.5603, allocations: 123.9 kB / 0.5078 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.5605, allocations: 176 kB / 0.508 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/0.5633, allocations: 1.107 MB / 0.509 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001721/0.5635, allocations: 235.1 kB / 0.5093 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/0.5667, allocations: 0.7036 MB / 0.51 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003903/0.5671, allocations: 320 kB / 0.5103 GB, free: 3.586 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.002376/0.5695, allocations: 1.72 MB / 0.5119 GB, free: 1.855 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004602/0.5699, allocations: 296.1 kB / 0.5122 GB, free: 1.562 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008547/0.5708, allocations: 498.5 kB / 0.5127 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.5708, allocations: 15.98 kB / 0.5127 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5709, allocations: 0 / 0.5127 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.5709, allocations: 7.984 kB / 0.5127 GB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004963/0.5758, allocations: 3.22 MB / 0.5159 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.5759, allocations: 7.984 kB / 0.5159 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004721/0.5764, allocations: 103.8 kB / 0.516 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.5764, allocations: 4 kB / 0.516 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.531e-05/0.5764, allocations: 20.27 kB / 0.516 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.227e-06/0.5765, allocations: 8 kB / 0.516 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/0.5765, allocations: 15.89 kB / 0.516 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/0.5788, allocations: 2.029 MB / 0.518 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009179/0.5798, allocations: 0.528 MB / 0.5185 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/0.58, allocations: 23.95 kB / 0.5185 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008332/0.5809, allocations: 55.97 kB / 0.5186 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.581, allocations: 52.19 kB / 0.5186 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.475e-05/0.581, allocations: 27.94 kB / 0.5187 GB, free: 10.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003514/0.5846, allocations: 2.365 MB / 0.521 GB, free: 8.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5846, allocations: 3.938 kB / 0.521 GB, free: 8.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004454/0.589, allocations: 0.8217 MB / 0.5218 GB, free: 7.625 MB / 446.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.002662/0.5917, allocations: 2.669 MB / 0.5244 GB, free: 4.895 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004672/0.5964, allocations: 2.753 MB / 0.5271 GB, free: 2.168 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5964, allocations: 0 / 0.5271 GB, free: 2.168 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005675/0.597, allocations: 416.9 kB / 0.5275 GB, free: 1.766 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.5992, allocations: 357.8 kB / 0.5278 GB, free: 1.414 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2451/0.8443, allocations: 54.75 MB / 0.5813 GB, free: 88.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/0.8466, allocations: 2.686 MB / 0.5839 GB, free: 86.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003243/0.8499, allocations: 1.545 MB / 0.5854 GB, free: 84.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/0.8514, allocations: 1.501 MB / 0.5869 GB, free: 84.27 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.8515, allocations: 0 / 0.5869 GB, free: 84.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07897/0.9304, allocations: 58.61 MB / 0.6441 GB, free: 26.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001149/0.9306, allocations: 189.1 kB / 0.6443 GB, free: 25.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.71/4.641, allocations: 0 / 0.6443 GB, free: 25.91 MB / 446.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