Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_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.001355/0.001355, 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.001621/0.001621, 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.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2332/0.2332, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 79.86 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3937, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01618/0.4099, allocations: 11.24 MB / 0.5415 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.4205, allocations: 2.813 MB / 0.5442 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003643/0.4242, allocations: 57.25 kB / 0.5443 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005182/0.4294, allocations: 1.329 MB / 0.5456 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005134/0.4347, allocations: 1.244 MB / 0.5468 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009075/0.4356, allocations: 86.52 kB / 0.5469 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005182/0.4408, allocations: 2.726 MB / 0.5495 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003428/0.4443, allocations: 1.84 MB / 0.5513 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00247/0.4468, allocations: 1.035 MB / 0.5523 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002477/0.4494, allocations: 1.448 MB / 0.5538 GB, free: 9.879 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008948/0.4503, allocations: 208 kB / 0.554 GB, free: 9.676 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001709/0.452, allocations: 0.4955 MB / 0.5544 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001834/0.4539, allocations: 1.394 MB / 0.5558 GB, free: 7.781 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002888/0.4568, allocations: 1.696 MB / 0.5575 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007169/0.464, allocations: 5.46 MB / 0.5628 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.4641, allocations: 0 / 0.5628 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4641, allocations: 0 / 0.5628 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002119/0.4643, allocations: 0 / 0.5628 GB, free: 0.5938 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.007726/0.472, allocations: 3.676 MB / 0.5664 GB, free: 12.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.4721, allocations: 8.031 kB / 0.5664 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001543/0.4736, allocations: 0.6671 MB / 0.567 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/0.4838, allocations: 2.974 MB / 0.5699 GB, free: 9.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004033/0.4879, allocations: 1.538 MB / 0.5714 GB, free: 7.594 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.4881, allocations: 172.7 kB / 0.5716 GB, free: 7.422 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/0.4892, allocations: 223.8 kB / 0.5718 GB, free: 7.203 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01846/0.5077, allocations: 9.476 MB / 0.5811 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.5078, allocations: 15.88 kB / 0.5811 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009404/0.5088, allocations: 107.8 kB / 0.5812 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004032/0.5128, allocations: 2.369 MB / 0.5835 GB, free: 10.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.5304, allocations: 8.68 MB / 0.592 GB, free: 2.164 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0485/0.579, allocations: 29.15 MB / 0.6205 GB, free: 4.207 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005574/0.5846, allocations: 3.047 MB / 0.6234 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.5863, allocations: 0.9766 MB / 0.6244 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/0.5968, allocations: 4.85 MB / 0.6291 GB, free: 10.85 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.5969, allocations: 39.22 kB / 0.6292 GB, free: 10.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=126): time 5.07e-06/0.5969, allocations: 0 / 0.6292 GB, free: 10.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=126): time 0.006503/0.6034, allocations: 2.749 MB / 0.6318 GB, free: 8.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.6035, allocations: 60.06 kB / 0.6319 GB, free: 7.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004729/0.6083, allocations: 2.566 MB / 0.6344 GB, free: 5.387 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.6084, allocations: 41.64 kB / 0.6344 GB, free: 5.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002349/0.6108, allocations: 2.763 MB / 0.6371 GB, free: 2.551 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007841/0.6116, allocations: 0.5117 MB / 0.6376 GB, free: 2.035 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001973/0.6136, allocations: 0.9091 MB / 0.6385 GB, free: 1.113 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000241/0.6138, allocations: 361.9 kB / 0.6389 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002241/0.6161, allocations: 1.352 MB / 0.6402 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004591/0.6207, allocations: 4.118 MB / 0.6442 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007022/0.6278, allocations: 5.96 MB / 0.65 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.6279, allocations: 28 kB / 0.6501 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01024/0.6382, allocations: 5.291 MB / 0.6552 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.6383, allocations: 51.19 kB / 0.6553 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002419/0.6386, allocations: 100 kB / 0.6554 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.6388, allocations: 132 kB / 0.6555 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003242/0.6421, allocations: 0.9747 MB / 0.6565 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002025/0.6423, allocations: 191.2 kB / 0.6566 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.6459, allocations: 0.6126 MB / 0.6572 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008092/0.6467, allocations: 280 kB / 0.6575 GB, free: 10.9 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.004017/0.6508, allocations: 1.887 MB / 0.6593 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004997/0.6513, allocations: 230.5 kB / 0.6596 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007494/0.6521, allocations: 271.3 kB / 0.6598 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-05/0.6521, allocations: 16 kB / 0.6598 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.6521, allocations: 0 / 0.6598 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.6522, allocations: 7.969 kB / 0.6598 GB, free: 8.477 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.6649, allocations: 5.626 MB / 0.6653 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.665, allocations: 4 kB / 0.6653 GB, free: 2.723 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/0.6656, allocations: 135.8 kB / 0.6655 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.544e-05/0.6657, allocations: 8 kB / 0.6655 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.901e-05/0.6658, allocations: 20 kB / 0.6655 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.205e-05/0.6658, allocations: 8 kB / 0.6655 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.6658, allocations: 7.938 kB / 0.6655 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002535/0.6683, allocations: 1.801 MB / 0.6673 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007062/0.6691, allocations: 307.2 kB / 0.6676 GB, free: 360 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004628/0.6696, allocations: 19.98 kB / 0.6676 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008406/0.6704, allocations: 39.95 kB / 0.6676 GB, free: 300 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.6706, allocations: 60.38 kB / 0.6677 GB, free: 240 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.6707, allocations: 36 kB / 0.6677 GB, free: 204 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003021/0.6738, allocations: 1.56 MB / 0.6692 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.71e-07/0.6738, allocations: 0 / 0.6692 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004473/0.6783, allocations: 1.004 MB / 0.6702 GB, free: 13.62 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.003347/0.6817, allocations: 2.448 MB / 0.6726 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005334/0.687, allocations: 3.151 MB / 0.6757 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/0.6871, allocations: 0 / 0.6757 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.6882, allocations: 0.7398 MB / 0.6764 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.6902, allocations: 260.5 kB / 0.6767 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05593/0.7461, allocations: 29.38 MB / 0.7053 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005857/0.752, allocations: 2.958 MB / 0.7082 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003599/0.7557, allocations: 1.488 MB / 0.7097 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002748/0.7585, allocations: 1.507 MB / 0.7112 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of SimCode: time 1.382e-06/0.7585, allocations: 0 / 0.7112 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3833/1.142, allocations: 38.51 MB / 0.7488 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.99, allocations: 11.33 kB / 0.7488 GB, free: 173.1 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Visualizers/Torus/Torus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches