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.001112/0.001112, 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.001274/0.001274, allocations: 199.8 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.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002622/0.002622, allocations: 75.88 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.394, allocations: 62.43 MB / 0.5305 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01419/0.4082, allocations: 11.24 MB / 0.5415 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007745/0.416, allocations: 2.824 MB / 0.5442 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002354/0.4185, allocations: 52.75 kB / 0.5443 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003709/0.4222, allocations: 1.329 MB / 0.5456 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004802/0.4271, allocations: 1.244 MB / 0.5468 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007608/0.4279, allocations: 87.64 kB / 0.5469 GB, free: 468 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006039/0.434, allocations: 2.714 MB / 0.5495 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003814/0.4378, allocations: 1.848 MB / 0.5513 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.4403, allocations: 1.035 MB / 0.5523 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.4429, allocations: 1.452 MB / 0.5538 GB, free: 9.781 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000881/0.4439, allocations: 208 kB / 0.554 GB, free: 9.578 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.4456, allocations: 0.4915 MB / 0.5544 GB, free: 9.086 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001995/0.4476, allocations: 1.394 MB / 0.5558 GB, free: 7.688 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003432/0.4511, allocations: 1.692 MB / 0.5575 GB, free: 5.984 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007843/0.4589, allocations: 5.468 MB / 0.5628 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.459, allocations: 4 kB / 0.5628 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.459, allocations: 0 / 0.5628 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002342/0.4593, allocations: 0 / 0.5628 GB, free: 0.4922 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.008746/0.468, allocations: 3.676 MB / 0.5664 GB, free: 12.74 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.499e-05/0.4681, allocations: 8.031 kB / 0.5664 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001941/0.47, allocations: 0.6671 MB / 0.567 GB, free: 12.06 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0101/0.4802, allocations: 2.966 MB / 0.5699 GB, free: 9.086 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004647/0.4849, allocations: 1.542 MB / 0.5714 GB, free: 7.496 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.4851, allocations: 172.7 kB / 0.5716 GB, free: 7.324 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.4863, allocations: 223.8 kB / 0.5718 GB, free: 7.105 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01841/0.5047, allocations: 9.476 MB / 0.5811 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001073/0.5049, allocations: 15.88 kB / 0.5811 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008892/0.5058, allocations: 107.8 kB / 0.5812 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004014/0.5098, allocations: 2.369 MB / 0.5835 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.5285, allocations: 8.676 MB / 0.592 GB, free: 2.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04553/0.5741, allocations: 29.15 MB / 0.6205 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005224/0.5794, allocations: 3.055 MB / 0.6234 GB, free: 0.832 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.581, allocations: 0.9804 MB / 0.6244 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009265/0.5903, allocations: 4.846 MB / 0.6291 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.5904, allocations: 39.22 kB / 0.6292 GB, free: 10.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=126): time 4.418e-06/0.5904, allocations: 4 kB / 0.6292 GB, free: 10.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=126): time 0.006197/0.5966, allocations: 2.749 MB / 0.6319 GB, free: 7.945 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.5967, allocations: 60.06 kB / 0.6319 GB, free: 7.875 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004056/0.6008, allocations: 2.558 MB / 0.6344 GB, free: 5.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/0.601, allocations: 37.7 kB / 0.6344 GB, free: 5.246 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002057/0.603, allocations: 2.767 MB / 0.6371 GB, free: 2.453 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006411/0.6037, allocations: 0.5078 MB / 0.6376 GB, free: 1.941 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001316/0.605, allocations: 0.9091 MB / 0.6385 GB, free: 1.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.6053, allocations: 361.9 kB / 0.6389 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002102/0.6074, allocations: 1.355 MB / 0.6402 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004431/0.6118, allocations: 4.122 MB / 0.6442 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007416/0.6193, allocations: 5.956 MB / 0.65 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.6194, allocations: 28 kB / 0.6501 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01105/0.6305, allocations: 5.291 MB / 0.6552 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.757e-05/0.6306, allocations: 48 kB / 0.6553 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001642/0.6308, allocations: 100 kB / 0.6554 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.631, allocations: 128 kB / 0.6555 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003318/0.6343, allocations: 0.9786 MB / 0.6565 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001906/0.6345, allocations: 191.8 kB / 0.6566 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/0.6384, allocations: 0.6165 MB / 0.6572 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008109/0.6392, allocations: 284 kB / 0.6575 GB, free: 10.79 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.003678/0.6429, allocations: 1.887 MB / 0.6594 GB, free: 8.891 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004673/0.6434, allocations: 226.5 kB / 0.6596 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006218/0.644, allocations: 271.3 kB / 0.6598 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.057e-05/0.6441, allocations: 16 kB / 0.6598 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.828e-05/0.6441, allocations: 4 kB / 0.6598 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.6441, allocations: 3.984 kB / 0.6599 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.6549, allocations: 5.614 MB / 0.6653 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.655, allocations: 4.562 kB / 0.6653 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/0.6556, allocations: 143.8 kB / 0.6655 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.309e-05/0.6556, allocations: 8 kB / 0.6655 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.876e-05/0.6557, allocations: 20 kB / 0.6655 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.211e-05/0.6557, allocations: 8 kB / 0.6655 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/0.6557, allocations: 11.94 kB / 0.6655 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.6583, allocations: 1.797 MB / 0.6673 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006543/0.659, allocations: 303.3 kB / 0.6676 GB, free: 264 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.6593, allocations: 27.91 kB / 0.6676 GB, free: 236 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.6599, allocations: 43.95 kB / 0.6676 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.66, allocations: 60.38 kB / 0.6677 GB, free: 132 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.6601, allocations: 36 kB / 0.6677 GB, free: 96 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002679/0.6628, allocations: 1.556 MB / 0.6692 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/0.6629, allocations: 0 / 0.6692 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004111/0.667, allocations: 1.004 MB / 0.6702 GB, free: 13.52 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.002859/0.6699, allocations: 2.44 MB / 0.6726 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004999/0.6749, allocations: 3.156 MB / 0.6757 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/0.6749, allocations: 0 / 0.6757 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009635/0.6759, allocations: 0.7413 MB / 0.6764 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.6773, allocations: 263.8 kB / 0.6767 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04803/0.7254, allocations: 29.37 MB / 0.7053 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00495/0.7304, allocations: 2.969 MB / 0.7082 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003664/0.7341, allocations: 1.48 MB / 0.7097 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002892/0.737, allocations: 1.515 MB / 0.7112 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/0.7371, allocations: 0 / 0.7112 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.338/1.075, allocations: 38.5 MB / 0.7488 GB, free: 173 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/15.19, allocations: 6.844 kB / 0.7488 GB, free: 173 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