Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002047, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2428/0.2428, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002362, allocations: 74.16 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1272, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01358/0.1408, allocations: 11.25 MB / 491.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006476/0.1473, allocations: 2.819 MB / 494.3 MB, free: 6.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.1492, allocations: 55.94 kB / 494.3 MB, free: 6.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003288/0.1525, allocations: 1.323 MB / 495.7 MB, free: 5.613 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003888/0.1565, allocations: 1.214 MB / 496.9 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005371/0.157, allocations: 79.83 kB / 496.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004565/0.1616, allocations: 2.714 MB / 499.7 MB, free: 1.598 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003311/0.1649, allocations: 1.848 MB / 0.4898 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/0.1674, allocations: 1.043 MB / 0.4908 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.17, allocations: 1.444 MB / 0.4922 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007748/0.1708, allocations: 208 kB / 0.4924 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.1725, allocations: 499.3 kB / 0.4929 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002103/0.1746, allocations: 1.383 MB / 0.4942 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003096/0.1777, allocations: 1.696 MB / 0.4959 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007804/0.1856, allocations: 5.155 MB / 0.5009 GB, free: 4.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1856, allocations: 0 / 0.5009 GB, free: 4.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1856, allocations: 0 / 0.5009 GB, free: 4.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002413/0.1859, allocations: 0 / 0.5009 GB, free: 4.258 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1443 * Number of variables: 1443 Notification: Performance of Generate backend data structure: time 0.008065/0.194, allocations: 3.577 MB / 0.5044 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.194, allocations: 8.031 kB / 0.5044 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1925/0.3866, allocations: 0.6658 MB / 0.505 GB, free: 39.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01082/0.3974, allocations: 2.937 MB / 0.5079 GB, free: 39.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003247/0.4007, allocations: 1.517 MB / 0.5094 GB, free: 38.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.4009, allocations: 176.2 kB / 0.5096 GB, free: 38.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000634/0.4015, allocations: 222.6 kB / 0.5098 GB, free: 38.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01435/0.4159, allocations: 9.469 MB / 0.519 GB, free: 34.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.694e-05/0.416, allocations: 23.47 kB / 0.519 GB, free: 34.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003441/0.4163, allocations: 109 kB / 0.5191 GB, free: 34.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003477/0.4198, allocations: 2.38 MB / 0.5215 GB, free: 33.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01539/0.4352, allocations: 8.669 MB / 0.5299 GB, free: 27.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03417/0.4694, allocations: 29.29 MB / 0.5585 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005279/0.4747, allocations: 3.05 MB / 0.5615 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.4763, allocations: 0.9844 MB / 0.5625 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009025/0.4853, allocations: 4.836 MB / 0.5672 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.4854, allocations: 46.91 kB / 0.5672 GB, free: 4.141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=126): time 4.639e-06/0.4854, allocations: 0 / 0.5672 GB, free: 4.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=126): time 0.006622/0.492, allocations: 2.736 MB / 0.5699 GB, free: 1.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.4921, allocations: 60.06 kB / 0.57 GB, free: 1.328 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004973/0.4971, allocations: 2.561 MB / 0.5725 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/0.4973, allocations: 45.69 kB / 0.5725 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.4996, allocations: 2.641 MB / 0.5751 GB, free: 12.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007048/0.5003, allocations: 0.4899 MB / 0.5756 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001736/0.5021, allocations: 0.8967 MB / 0.5765 GB, free: 10.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.5023, allocations: 361.9 kB / 0.5768 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/0.5046, allocations: 1.352 MB / 0.5781 GB, free: 8.883 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004933/0.5095, allocations: 4.122 MB / 0.5821 GB, free: 3.371 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007431/0.517, allocations: 5.964 MB / 0.588 GB, free: 12.03 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/0.5171, allocations: 31.94 kB / 0.588 GB, free: 12 MB / 430.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01088/0.528, allocations: 5.279 MB / 0.5932 GB, free: 6.715 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.5282, allocations: 48.25 kB / 0.5932 GB, free: 6.668 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002204/0.5284, allocations: 100 kB / 0.5933 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.5286, allocations: 132 kB / 0.5934 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003297/0.5319, allocations: 0.9747 MB / 0.5944 GB, free: 5.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000196/0.5321, allocations: 187.3 kB / 0.5945 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/0.5357, allocations: 0.603 MB / 0.5951 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006626/0.5364, allocations: 272 kB / 0.5954 GB, free: 4.406 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 21 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 534 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003694/0.5401, allocations: 1.903 MB / 0.5973 GB, free: 2.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005005/0.5407, allocations: 213.2 kB / 0.5975 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006969/0.5414, allocations: 271.3 kB / 0.5977 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.202e-05/0.5414, allocations: 16 kB / 0.5977 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.5414, allocations: 4 kB / 0.5977 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.5414, allocations: 3.984 kB / 0.5977 GB, free: 1.984 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/0.552, allocations: 5.61 MB / 0.6032 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.5521, allocations: 7.984 kB / 0.6032 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006232/0.5527, allocations: 135.8 kB / 0.6034 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.219e-05/0.5527, allocations: 4 kB / 0.6034 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/0.5528, allocations: 23.94 kB / 0.6034 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.476e-05/0.5528, allocations: 12.92 kB / 0.6034 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.5528, allocations: 8.469 kB / 0.6034 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.5553, allocations: 1.799 MB / 0.6052 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005291/0.5558, allocations: 282.1 kB / 0.6054 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002144/0.556, allocations: 20 kB / 0.6054 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005642/0.5566, allocations: 35.95 kB / 0.6055 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.5567, allocations: 72.3 kB / 0.6056 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.5568, allocations: 43.92 kB / 0.6056 GB, free: 9.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002602/0.5594, allocations: 1.556 MB / 0.6071 GB, free: 8.156 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5595, allocations: 0 / 0.6071 GB, free: 8.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003879/0.5633, allocations: 0.9821 MB / 0.6081 GB, free: 7.172 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * 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 (78): * Single equations (assignments): 72 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003154/0.5665, allocations: 2.438 MB / 0.6105 GB, free: 4.656 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006931/0.5735, allocations: 3.956 MB / 0.6143 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/0.5735, allocations: 0 / 0.6143 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.5746, allocations: 0.7425 MB / 0.615 GB, free: 15.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/0.5763, allocations: 251.7 kB / 0.6153 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05234/0.6287, allocations: 31.07 MB / 0.6456 GB, free: 11.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004586/0.6333, allocations: 2.973 MB / 0.6485 GB, free: 8.906 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003668/0.637, allocations: 1.488 MB / 0.65 GB, free: 7.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002469/0.6395, allocations: 1.515 MB / 0.6515 GB, free: 5.895 MB / 494.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6395, allocations: 0 / 0.6515 GB, free: 5.895 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08738/0.7269, allocations: 41.05 MB / 0.6915 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.313/10.04, allocations: 12.31 kB / 0.6916 GB, free: 12.98 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)