Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Arrow,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Visualizers_Arrow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 235 MB / 248 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.486e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3845, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.184/0.5686, allocations: 87.5 MB / 452.1 MB, free: 9.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.569, allocations: 75.97 kB / 452.2 MB, free: 8.945 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06896/0.6379, allocations: 16.34 MB / 468.5 MB, free: 8.508 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.638, allocations: 0 / 468.5 MB, free: 8.508 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.388e-05/0.6381, allocations: 16 kB / 468.6 MB, free: 8.492 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.002457/0.6405, allocations: 0.9823 MB / 469.5 MB, free: 7.465 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.6406, allocations: 8.031 kB / 469.5 MB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004261/0.641, allocations: 177.4 kB / 469.7 MB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002157/0.6432, allocations: 226.4 kB / 469.9 MB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.6449, allocations: 0.5573 MB / 470.5 MB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.77e-05/0.645, allocations: 65.97 kB / 470.6 MB, free: 6.383 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000299/0.6453, allocations: 83.98 kB / 470.6 MB, free: 6.301 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004068/0.6494, allocations: 1.684 MB / 472.3 MB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.6495, allocations: 7.938 kB / 472.3 MB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001689/0.6497, allocations: 47.92 kB / 472.4 MB, free: 4.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006276/0.6503, allocations: 173.4 kB / 472.5 MB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.6534, allocations: 1.118 MB / 473.7 MB, free: 3.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/0.666, allocations: 7.443 MB / 481.1 MB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.6666, allocations: 150.5 kB / 481.3 MB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.6668, allocations: 72.83 kB / 481.3 MB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.6669, allocations: 12.3 kB / 481.3 MB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.6669, allocations: 38.56 kB / 481.4 MB, free: 11.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 3.045e-06/0.667, allocations: 3.938 kB / 481.4 MB, free: 11.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.000756/0.6677, allocations: 233.4 kB / 481.6 MB, free: 10.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.6678, allocations: 55.39 kB / 481.7 MB, free: 10.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/0.6695, allocations: 0.8394 MB / 482.5 MB, free: 9.922 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.6696, allocations: 25.7 kB / 482.5 MB, free: 9.891 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006379/0.6702, allocations: 0.7045 MB / 483.2 MB, free: 9.176 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.68e-05/0.6704, allocations: 59.42 kB / 483.3 MB, free: 9.117 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.6704, allocations: 20 kB / 483.3 MB, free: 9.098 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.6706, allocations: 354.8 kB / 483.7 MB, free: 8.742 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006003/0.6713, allocations: 221.9 kB / 483.9 MB, free: 8.527 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.6725, allocations: 0.8956 MB / 484.8 MB, free: 7.289 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.6735, allocations: 455.4 kB / 485.2 MB, free: 6.844 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.711e-05/0.6736, allocations: 4 kB / 485.2 MB, free: 6.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002678/0.6763, allocations: 1.048 MB / 486.3 MB, free: 5.785 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.6763, allocations: 16 kB / 486.3 MB, free: 5.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.112e-05/0.6764, allocations: 24 kB / 486.3 MB, free: 5.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.445e-05/0.6765, allocations: 36.75 kB / 486.3 MB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.6779, allocations: 243.6 kB / 486.6 MB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.224e-05/0.678, allocations: 47.8 kB / 486.6 MB, free: 5.426 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.6792, allocations: 162.3 kB / 486.8 MB, free: 5.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.6794, allocations: 71.94 kB / 486.9 MB, free: 5.195 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 18 (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],fixedArrow.color[3],fixedArrow.color[2],fixedArrow.color[1],arrow.color[3],arrow.color[2],arrow.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 123 * Array equations: 0 * 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.0002682/0.6797, allocations: 182.2 kB / 487 MB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.6798, allocations: 79.06 kB / 487.1 MB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008113/0.6807, allocations: 277.1 kB / 487.4 MB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.6807, allocations: 0 / 487.4 MB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.6807, allocations: 4 kB / 487.4 MB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.6807, allocations: 0 / 487.4 MB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.6822, allocations: 0.7314 MB / 488.1 MB, free: 3.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.6822, allocations: 0 / 488.1 MB, free: 3.871 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.6827, allocations: 47.84 kB / 488.2 MB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.6827, allocations: 0 / 488.2 MB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.6827, allocations: 7.984 kB / 488.2 MB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.6827, allocations: 0 / 488.2 MB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6828, allocations: 0 / 488.2 MB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006744/0.6834, allocations: 344.6 kB / 488.5 MB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002818/0.6837, allocations: 160.1 kB / 488.7 MB, free: 3.289 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.6839, allocations: 4 kB / 488.7 MB, free: 3.285 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004844/0.6844, allocations: 11.98 kB / 488.7 MB, free: 3.273 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.6845, allocations: 19.97 kB / 488.7 MB, free: 3.254 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.6845, allocations: 4 kB / 488.7 MB, free: 3.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001268/0.6858, allocations: 0.5966 MB / 489.3 MB, free: 2.656 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6858, allocations: 0 / 489.3 MB, free: 2.656 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001309/0.6871, allocations: 215.2 kB / 489.5 MB, free: 2.445 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * 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.001065/0.6882, allocations: 0.8873 MB / 490.4 MB, free: 1.531 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.6897, allocations: 0.543 MB / 490.9 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.6897, allocations: 1.938 kB / 490.9 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.69, allocations: 91.94 kB / 491 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/0.6907, allocations: 83.22 kB / 491.1 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/0.6954, allocations: 1.473 MB / 492.6 MB, free: 15.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.6966, allocations: 1.163 MB / 493.7 MB, free: 14.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000756/0.6974, allocations: 343.3 kB / 494.1 MB, free: 13.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6974, allocations: 0 / 494.1 MB, free: 13.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.778/3.476, allocations: 14.74 MB / 0.4969 GB, free: 15.03 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Visualizers.Arrow_res.mat does not exist to compare? outputFormat=mat