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.001494/0.001494, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 247 MB, free: 10.46 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.2507/0.2507, allocations: 46.11 MB / 344.3 MB, free: 11.48 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.00244/0.00244, allocations: 75.88 kB / 480.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4164, allocations: 62.46 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.0145/0.431, allocations: 11.24 MB / 0.5416 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009007/0.44, allocations: 2.812 MB / 0.5443 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.4429, allocations: 57.34 kB / 0.5444 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004043/0.447, allocations: 1.336 MB / 0.5457 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004572/0.4517, allocations: 1.193 MB / 0.5468 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006807/0.4524, allocations: 87.38 kB / 0.5469 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005428/0.4578, allocations: 2.723 MB / 0.5496 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002967/0.4608, allocations: 1.852 MB / 0.5514 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001963/0.4628, allocations: 1.047 MB / 0.5524 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002156/0.465, allocations: 1.448 MB / 0.5538 GB, free: 9.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005588/0.4656, allocations: 208 kB / 0.554 GB, free: 9.617 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.4668, allocations: 499.3 kB / 0.5545 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.4682, allocations: 1.379 MB / 0.5558 GB, free: 7.746 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.4702, allocations: 1.696 MB / 0.5575 GB, free: 6.039 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00851/0.4788, allocations: 5.452 MB / 0.5628 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4788, allocations: 4 kB / 0.5628 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4788, allocations: 0 / 0.5628 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001835/0.479, allocations: 0 / 0.5628 GB, free: 0.5625 MB / 414.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.008082/0.4871, allocations: 3.684 MB / 0.5664 GB, free: 12.8 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.4872, allocations: 8.031 kB / 0.5664 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001162/0.4884, allocations: 0.6671 MB / 0.5671 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01021/0.4986, allocations: 2.962 MB / 0.57 GB, free: 9.152 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003911/0.5025, allocations: 1.534 MB / 0.5715 GB, free: 7.574 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002199/0.5028, allocations: 176.6 kB / 0.5716 GB, free: 7.398 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009413/0.5037, allocations: 223.8 kB / 0.5719 GB, free: 7.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01742/0.5212, allocations: 9.472 MB / 0.5811 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-05/0.5213, allocations: 19.81 kB / 0.5811 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004088/0.5217, allocations: 107.8 kB / 0.5812 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004122/0.5258, allocations: 2.373 MB / 0.5835 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.5436, allocations: 8.672 MB / 0.592 GB, free: 2.145 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04902/0.5927, allocations: 29.15 MB / 0.6205 GB, free: 4.184 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005818/0.5986, allocations: 3.051 MB / 0.6235 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.6002, allocations: 0.9805 MB / 0.6244 GB, free: 15.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009312/0.6096, allocations: 4.843 MB / 0.6292 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/0.6096, allocations: 43.22 kB / 0.6292 GB, free: 10.78 MB / 494.1 MB Notification: Performance of pre-optimization done (n=126): time 5.15e-06/0.6097, allocations: 4 kB / 0.6292 GB, free: 10.78 MB / 494.1 MB Notification: Performance of matching and sorting (n=126): time 0.006327/0.616, allocations: 2.753 MB / 0.6319 GB, free: 8.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.6161, allocations: 60.06 kB / 0.6319 GB, free: 7.949 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/0.6201, allocations: 2.566 MB / 0.6344 GB, free: 5.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.6203, allocations: 37.7 kB / 0.6345 GB, free: 5.312 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002319/0.6226, allocations: 2.763 MB / 0.6372 GB, free: 2.523 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006028/0.6232, allocations: 0.5079 MB / 0.6377 GB, free: 2.012 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.6245, allocations: 0.9091 MB / 0.6386 GB, free: 1.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.6247, allocations: 361.9 kB / 0.6389 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.6268, allocations: 1.352 MB / 0.6402 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004851/0.6317, allocations: 4.122 MB / 0.6443 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007947/0.6397, allocations: 5.956 MB / 0.6501 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.1e-05/0.6398, allocations: 28 kB / 0.6501 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01045/0.6503, allocations: 5.291 MB / 0.6553 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.993e-05/0.6504, allocations: 48 kB / 0.6553 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/0.6505, allocations: 100 kB / 0.6554 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001433/0.6507, allocations: 128 kB / 0.6555 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/0.6538, allocations: 0.9786 MB / 0.6565 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001781/0.654, allocations: 187.9 kB / 0.6567 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003478/0.6575, allocations: 0.6244 MB / 0.6573 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000737/0.6583, allocations: 276 kB / 0.6575 GB, free: 10.87 MB / 0.5137 GB 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.003875/0.6622, allocations: 1.891 MB / 0.6594 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.6626, allocations: 226.5 kB / 0.6596 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000586/0.6632, allocations: 271.3 kB / 0.6599 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.462e-05/0.6633, allocations: 23.97 kB / 0.6599 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.6633, allocations: 4 kB / 0.6599 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.6633, allocations: 3.984 kB / 0.6599 GB, free: 8.441 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.6749, allocations: 5.607 MB / 0.6654 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.675, allocations: 4.562 kB / 0.6654 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006327/0.6757, allocations: 139.8 kB / 0.6655 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-05/0.6757, allocations: 8 kB / 0.6655 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-05/0.6758, allocations: 24 kB / 0.6655 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.978e-05/0.6758, allocations: 11.94 kB / 0.6655 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/0.6758, allocations: 8 kB / 0.6656 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.6783, allocations: 1.805 MB / 0.6673 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005699/0.6789, allocations: 299.3 kB / 0.6676 GB, free: 336 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.6791, allocations: 20 kB / 0.6676 GB, free: 316 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.6797, allocations: 39.95 kB / 0.6677 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.6798, allocations: 64.38 kB / 0.6677 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.6799, allocations: 39.98 kB / 0.6678 GB, free: 172 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002499/0.6824, allocations: 1.556 MB / 0.6693 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6825, allocations: 0 / 0.6693 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004056/0.6865, allocations: 1 MB / 0.6703 GB, free: 13.59 MB / 0.5294 GB 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.003847/0.6904, allocations: 2.44 MB / 0.6726 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007666/0.6981, allocations: 3.164 MB / 0.6757 GB, free: 7.934 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/0.6982, allocations: 0 / 0.6757 GB, free: 7.934 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.6998, allocations: 0.7335 MB / 0.6764 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.702, allocations: 256 kB / 0.6767 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07477/0.7768, allocations: 29.38 MB / 0.7054 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008017/0.7849, allocations: 2.969 MB / 0.7083 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005868/0.7908, allocations: 1.48 MB / 0.7097 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004127/0.7949, allocations: 1.511 MB / 0.7112 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of SimCode: time 1.854e-06/0.795, allocations: 0 / 0.7112 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4241/1.219, allocations: 38.52 MB / 0.7488 GB, free: 173 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.5/16.72, allocations: 6.016 kB / 0.7488 GB, free: 173 MB / 0.5762 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)