Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Visualizers.Arrow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow") translateModel(ModelicaTest.MultiBody.Visualizers.Arrow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.6 MB / 243.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008323/0.0008322, allocations: 95.84 kB / 295.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.299/0.299, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002814, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.278, allocations: 62.96 MB / 0.5159 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Arrow): time 0.01165/0.2897, allocations: 18.36 MB / 0.5338 GB, free: 23.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006928/0.2967, allocations: 4.052 MB / 0.5378 GB, free: 21.22 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002799/0.2995, allocations: 78.53 kB / 0.5378 GB, free: 21.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.3013, allocations: 0.7835 MB / 0.5386 GB, free: 20.93 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004158/0.3054, allocations: 2.234 MB / 0.5408 GB, free: 19.99 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.3058, allocations: 50 kB / 0.5408 GB, free: 19.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004691/0.3062, allocations: 0.5697 MB / 0.5414 GB, free: 19.74 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000936/0.3072, allocations: 0.8122 MB / 0.5422 GB, free: 19.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.3074, allocations: 188.2 kB / 0.5424 GB, free: 19.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002689/0.3077, allocations: 278.2 kB / 0.5426 GB, free: 19.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.3078, allocations: 18.38 kB / 0.5426 GB, free: 19.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.308, allocations: 70.81 kB / 0.5427 GB, free: 19.15 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.3081, allocations: 253.8 kB / 0.543 GB, free: 19.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3083, allocations: 316.4 kB / 0.5433 GB, free: 18.85 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004496/0.3088, allocations: 0.699 MB / 0.5439 GB, free: 18.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3088, allocations: 3.938 kB / 0.5439 GB, free: 18.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3088, allocations: 0 / 0.5439 GB, free: 18.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3088, allocations: 2.875 kB / 0.5439 GB, free: 18.68 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.001089/0.3099, allocations: 0.8693 MB / 0.5448 GB, free: 18.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.3099, allocations: 9.875 kB / 0.5448 GB, free: 18.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006737/0.3106, allocations: 169.9 kB / 0.545 GB, free: 17.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.3111, allocations: 461.2 kB / 0.5454 GB, free: 17.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.3111, allocations: 35.31 kB / 0.5454 GB, free: 17.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-05/0.3112, allocations: 52.45 kB / 0.5455 GB, free: 17.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.3125, allocations: 1.239 MB / 0.5467 GB, free: 16.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3125, allocations: 10.31 kB / 0.5467 GB, free: 16.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-05/0.3126, allocations: 24.06 kB / 0.5467 GB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000391/0.313, allocations: 246.3 kB / 0.547 GB, free: 16.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.3142, allocations: 0.8157 MB / 0.5478 GB, free: 16.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003352/0.3176, allocations: 5.068 MB / 0.5527 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.3177, allocations: 68 kB / 0.5528 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3178, allocations: 53.95 kB / 0.5528 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.3179, allocations: 2.641 kB / 0.5528 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.3179, allocations: 38.5 kB / 0.5529 GB, free: 12.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.974e-06/0.3179, allocations: 0 / 0.5529 GB, free: 12.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004908/0.3184, allocations: 227.5 kB / 0.5531 GB, free: 12.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/0.3184, allocations: 52.72 kB / 0.5531 GB, free: 12.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008756/0.3193, allocations: 0.8519 MB / 0.554 GB, free: 11.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.237e-06/0.3193, allocations: 29.7 kB / 0.554 GB, free: 11.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.3196, allocations: 0.5332 MB / 0.5545 GB, free: 11.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.3196, allocations: 27.62 kB / 0.5545 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.058e-05/0.3196, allocations: 15.34 kB / 0.5546 GB, free: 11.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3198, allocations: 378.6 kB / 0.5549 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/0.3201, allocations: 178.6 kB / 0.5551 GB, free: 11.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004527/0.3205, allocations: 0.7429 MB / 0.5558 GB, free: 10.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007956/0.3213, allocations: 0.9867 MB / 0.5568 GB, free: 9.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-06/0.3213, allocations: 6.031 kB / 0.5568 GB, free: 9.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001213/0.3226, allocations: 0.8846 MB / 0.5576 GB, free: 8.871 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.3226, allocations: 17.81 kB / 0.5577 GB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/0.3226, allocations: 24.55 kB / 0.5577 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.301e-05/0.3227, allocations: 25.66 kB / 0.5577 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.3231, allocations: 183.9 kB / 0.5579 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.341e-05/0.3232, allocations: 39.14 kB / 0.5579 GB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.3237, allocations: 127.9 kB / 0.558 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.3237, allocations: 52.12 kB / 0.5581 GB, free: 8.742 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * Number of states: 0 () * Number of discrete variables: 25 (fixedArrow.arrowLine.twoHeadedArrow,fixedArrow.headAtOrigin,arrow.arrow.arrowLine.twoHeadedArrow,arrow.headAtOrigin,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],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0003874/0.3241, allocations: 382.1 kB / 0.5585 GB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.817e-05/0.3242, allocations: 62.53 kB / 0.5585 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.438e-05/0.3243, allocations: 61.92 kB / 0.5586 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3243, allocations: 0 / 0.5586 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3243, allocations: 2.234 kB / 0.5586 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3243, allocations: 4 kB / 0.5586 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000579/0.3249, allocations: 0.5503 MB / 0.5591 GB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3249, allocations: 0.6094 kB / 0.5591 GB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.3251, allocations: 18.81 kB / 0.5591 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3251, allocations: 0 / 0.5591 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.3251, allocations: 6.922 kB / 0.5591 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3251, allocations: 0 / 0.5591 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3251, allocations: 0 / 0.5591 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003121/0.3254, allocations: 284.7 kB / 0.5594 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3255, allocations: 134.5 kB / 0.5595 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/0.3256, allocations: 1 kB / 0.5595 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.3258, allocations: 14.48 kB / 0.5596 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.3258, allocations: 13.08 kB / 0.5596 GB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.3259, allocations: 5.734 kB / 0.5596 GB, free: 7.801 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006124/0.3265, allocations: 0.5444 MB / 0.5601 GB, free: 7.582 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3265, allocations: 1.125 kB / 0.5601 GB, free: 7.582 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006272/0.3271, allocations: 160.2 kB / 0.5603 GB, free: 7.539 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001139/0.3272, allocations: 101 kB / 0.5604 GB, free: 7.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006714/0.3279, allocations: 433.2 kB / 0.5608 GB, free: 7.312 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3279, allocations: 0 / 0.5608 GB, free: 7.312 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.3281, allocations: 48.41 kB / 0.5608 GB, free: 7.309 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005592/0.3286, allocations: 107.2 kB / 0.5609 GB, free: 7.262 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.3304, allocations: 1.482 MB / 0.5624 GB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.3309, allocations: 1.022 MB / 0.5634 GB, free: 5.645 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.331, allocations: 44.56 kB / 0.5634 GB, free: 5.637 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.331, allocations: 0 / 0.5634 GB, free: 5.637 MB / 378.7 MB Notification: Performance of Templates: time 0.009809/0.3408, allocations: 7.93 MB / 0.5712 GB, free: 15.59 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Visualizers/Arrow/Arrow.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Visualizers.Arrow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches