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.0008775/0.0008776, allocations: 90.7 kB / 16.31 MB, free: 5.672 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.0009695/0.0009695, allocations: 183 kB / 17.2 MB, free: 5.602 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.469/1.469, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002696, allocations: 6.594 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.123, allocations: 50.42 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.02741/0.1505, allocations: 28.68 MB / 379.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.1671, allocations: 6.581 MB / 386.5 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006741/0.1739, allocations: 147.6 kB / 386.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005671/0.1796, allocations: 1.404 MB / 388 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01685/0.1965, allocations: 4.075 MB / 392.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002141/0.1987, allocations: 223.6 kB / 392.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03394/0.2327, allocations: 24.43 MB / 416.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00351/0.2362, allocations: 2.41 MB / 419.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.2373, allocations: 0.6889 MB / 419.9 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.2386, allocations: 0.9967 MB / 420.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002766/0.2389, allocations: 96 kB / 421 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009623/0.2399, allocations: 0.4914 MB / 421.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001009/0.2409, allocations: 1.149 MB / 422.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006181/0.2415, allocations: 0.6323 MB / 423.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2511/0.4926, allocations: 3.698 MB / 426.9 MB, free: 29.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4927, allocations: 0 / 426.9 MB, free: 29.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4927, allocations: 0 / 426.9 MB, free: 29.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002319/0.4929, allocations: 0.5 kB / 426.9 MB, free: 29.01 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.006589/0.4995, allocations: 3.177 MB / 430.1 MB, free: 27.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4996, allocations: 9.75 kB / 430.1 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001215/0.5008, allocations: 0.5352 MB / 430.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006355/0.5072, allocations: 1.97 MB / 432.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004096/0.5113, allocations: 1.625 MB / 434.2 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.5114, allocations: 158.9 kB / 434.4 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004241/0.5119, allocations: 194.8 kB / 434.6 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.5224, allocations: 6.982 MB / 441.6 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-05/0.5226, allocations: 27.34 kB / 441.6 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002932/0.5229, allocations: 100.9 kB / 441.7 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002133/0.525, allocations: 1.565 MB / 443.3 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009968/0.535, allocations: 5.487 MB / 448.8 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02749/0.5625, allocations: 27.41 MB / 476.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002511/0.5651, allocations: 1.592 MB / 477.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004108/0.5692, allocations: 2.683 MB / 480.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.5692, allocations: 46.52 kB / 480.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.495e-06/0.5692, allocations: 4 kB / 480.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003501/0.5728, allocations: 1.924 MB / 482.4 MB, free: 452 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.5728, allocations: 187.9 kB / 482.6 MB, free: 220 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005358/0.5782, allocations: 3.717 MB / 486.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.5783, allocations: 36.7 kB / 486.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001848/0.5802, allocations: 2.715 MB / 489.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.5805, allocations: 367.2 kB / 489.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.5807, allocations: 90.06 kB / 489.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003143/0.581, allocations: 0.5081 MB / 490 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001796/0.5828, allocations: 1.182 MB / 491.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005136/0.588, allocations: 4.527 MB / 495.7 MB, free: 3.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003726/0.5918, allocations: 2.288 MB / 498 MB, free: 2.457 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.601e-05/0.5919, allocations: 36 kB / 498 MB, free: 2.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008628/0.6005, allocations: 5.419 MB / 0.4917 GB, free: 14.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.954e-05/0.6006, allocations: 56 kB / 0.4917 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/0.6008, allocations: 128 kB / 0.4918 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.6009, allocations: 175.8 kB / 0.492 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/0.604, allocations: 1.105 MB / 0.4931 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000159/0.6041, allocations: 232.9 kB / 0.4933 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003697/0.6078, allocations: 0.7198 MB / 0.494 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005006/0.6084, allocations: 313.7 kB / 0.4943 GB, free: 12.43 MB / 382.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.002524/0.6109, allocations: 1.719 MB / 0.496 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005985/0.6115, allocations: 296.2 kB / 0.4963 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000866/0.6124, allocations: 498 kB / 0.4967 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/0.6124, allocations: 15.95 kB / 0.4968 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.6124, allocations: 6.188 kB / 0.4968 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.6124, allocations: 7.984 kB / 0.4968 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006186/0.6186, allocations: 3.223 MB / 0.4999 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.6187, allocations: 4 kB / 0.4999 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/0.6192, allocations: 105.5 kB / 0.5 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.067e-05/0.6192, allocations: 8 kB / 0.5 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.188e-05/0.6193, allocations: 18.66 kB / 0.5001 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.206e-05/0.6193, allocations: 7.094 kB / 0.5001 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.6193, allocations: 4.562 kB / 0.5001 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/0.6222, allocations: 2.392 MB / 0.5024 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.6236, allocations: 0.5202 MB / 0.5029 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002779/0.6238, allocations: 12 kB / 0.5029 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008738/0.6247, allocations: 55.95 kB / 0.503 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.6248, allocations: 45.94 kB / 0.503 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.6249, allocations: 34.67 kB / 0.503 GB, free: 4.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003681/0.6286, allocations: 2.365 MB / 0.5054 GB, free: 1.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6286, allocations: 0 / 0.5054 GB, free: 1.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004498/0.6331, allocations: 0.8231 MB / 0.5062 GB, free: 1.156 MB / 382.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.003026/0.6362, allocations: 3.806 MB / 0.5099 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004586/0.6408, allocations: 2.758 MB / 0.5126 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.6408, allocations: 4.75 kB / 0.5126 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.6413, allocations: 397.3 kB / 0.513 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.6432, allocations: 352.2 kB / 0.5133 GB, free: 9.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2727/0.9159, allocations: 108.4 MB / 0.6192 GB, free: 135.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/0.9186, allocations: 2.755 MB / 0.6218 GB, free: 135 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003713/0.9223, allocations: 1.549 MB / 0.6234 GB, free: 134.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.9241, allocations: 1.495 MB / 0.6248 GB, free: 134.9 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.9241, allocations: 6.719 kB / 0.6248 GB, free: 134.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09163/1.016, allocations: 58.58 MB / 0.682 GB, free: 80.45 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/1.016, allocations: 190.1 kB / 0.6822 GB, free: 80.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.406/4.422, allocations: 4.938 kB / 0.6822 GB, free: 80.21 MB / 462.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