Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr StewartPlatform_StewartPlatform.Tests.SpindleDrive_test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo", uses=false) Using package StewartPlatform with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(StewartPlatform.Tests.SpindleDrive_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_SpindleDrive_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(StewartPlatform.Tests.SpindleDrive_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_SpindleDrive_test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 198.5 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1345/0.1345, allocations: 6.484 MB / 296.9 MB, free: 2.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.91 kB / 358.9 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.08551, allocations: 50.85 MB / 409.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.SpindleDrive_test): time 0.00787/0.09342, allocations: 7.236 MB / 416.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003814/0.09726, allocations: 2.255 MB / 419.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006422/0.09792, allocations: 31.94 kB / 419.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.09953, allocations: 0.8054 MB / 420 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001705/0.1013, allocations: 0.8128 MB / 420.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005082/0.1018, allocations: 219.5 kB / 421.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1388/0.2406, allocations: 1.868 MB / 422.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001347/0.242, allocations: 1.158 MB / 424.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007685/0.2427, allocations: 0.6753 MB / 424.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007492/0.2435, allocations: 0.9551 MB / 425.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001831/0.2437, allocations: 126.6 kB / 425.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007762/0.2445, allocations: 0.6059 MB / 426.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004421/0.2449, allocations: 0.8595 MB / 427.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005318/0.2455, allocations: 1.087 MB / 428.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001868/0.2473, allocations: 3.314 MB / 431.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2474, allocations: 0 / 431.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2474, allocations: 0 / 431.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.507e-05/0.2474, allocations: 0 / 431.7 MB, free: 34.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 884 * Number of variables: 884 Notification: Performance of Generate backend data structure: time 0.002462/0.2499, allocations: 2.476 MB / 434.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.2499, allocations: 9.531 kB / 434.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003143/0.2502, allocations: 426.8 kB / 434.6 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004389/0.2546, allocations: 1.557 MB / 436.2 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.2559, allocations: 1.023 MB / 437.2 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.814e-05/0.2559, allocations: 113 kB / 437.3 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.2562, allocations: 151.1 kB / 437.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004802/0.261, allocations: 5.519 MB / 443 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.53e-05/0.261, allocations: 30.78 kB / 443 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001713/0.2612, allocations: 77.81 kB / 443.1 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001421/0.2627, allocations: 1.264 MB / 444.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005745/0.2684, allocations: 4.596 MB / 448.9 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01554/0.284, allocations: 22.14 MB / 471.1 MB, free: 27.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.2861, allocations: 1.521 MB / 472.6 MB, free: 26.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.2866, allocations: 440 kB / 473 MB, free: 26.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002826/0.2869, allocations: 335.7 kB / 473.3 MB, free: 26.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.287, allocations: 44.09 kB / 473.4 MB, free: 26.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 3.116e-06/0.287, allocations: 4 kB / 473.4 MB, free: 26.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=91): time 0.00782/0.2948, allocations: 4.257 MB / 477.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.2949, allocations: 137.5 kB / 477.8 MB, free: 23.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/0.2984, allocations: 2.554 MB / 480.3 MB, free: 22.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.2985, allocations: 37.27 kB / 480.4 MB, free: 22.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00095/0.2995, allocations: 1.937 MB / 482.3 MB, free: 21.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002896/0.2998, allocations: 394.2 kB / 482.7 MB, free: 20.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00097/0.3007, allocations: 0.8159 MB / 483.5 MB, free: 20.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.3008, allocations: 304 kB / 483.8 MB, free: 20.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/0.3026, allocations: 1.073 MB / 484.9 MB, free: 19.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/0.3053, allocations: 3.793 MB / 488.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004779/0.3101, allocations: 5.342 MB / 494 MB, free: 11.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/0.3102, allocations: 28.56 kB / 494 MB, free: 11.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.006696/0.3169, allocations: 4.622 MB / 498.7 MB, free: 9.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/0.317, allocations: 50.59 kB / 498.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/0.3171, allocations: 97.19 kB / 498.8 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.3173, allocations: 126.8 kB / 498.9 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002374/0.3196, allocations: 0.9393 MB / 499.9 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001704/0.3198, allocations: 192 kB / 0.4883 GB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.3221, allocations: 203.1 kB / 0.4885 GB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003184/0.3224, allocations: 259.2 kB / 0.4888 GB, free: 8.043 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 442 * Number of states: 0 () * Number of discrete variables: 18 (pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 506 * Array equations: 3 * 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.001607/0.324, allocations: 1.293 MB / 0.49 GB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/0.3244, allocations: 209.2 kB / 0.4902 GB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003559/0.3248, allocations: 246.5 kB / 0.4905 GB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.3248, allocations: 12 kB / 0.4905 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.3248, allocations: 0 / 0.4905 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.3248, allocations: 3.375 kB / 0.4905 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00447/0.3293, allocations: 3.106 MB / 0.4935 GB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.3293, allocations: 8 kB / 0.4935 GB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005153/0.3299, allocations: 140.9 kB / 0.4937 GB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.3299, allocations: 12 kB / 0.4937 GB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/0.3299, allocations: 31.61 kB / 0.4937 GB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.168e-05/0.33, allocations: 11.94 kB / 0.4937 GB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.33, allocations: 8 kB / 0.4937 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.3323, allocations: 2.085 MB / 0.4958 GB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006358/0.333, allocations: 355.8 kB / 0.4961 GB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.3332, allocations: 22.95 kB / 0.4961 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006351/0.3338, allocations: 29.77 kB / 0.4962 GB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.3339, allocations: 71.84 kB / 0.4962 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.931e-05/0.334, allocations: 33.48 kB / 0.4963 GB, free: 1.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002051/0.3361, allocations: 1.576 MB / 0.4978 GB, free: 15.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.3361, allocations: 0 / 0.4978 GB, free: 15.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0028/0.3389, allocations: 0.5311 MB / 0.4983 GB, free: 15.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (73): * Single equations (assignments): 70 * Array equations: 3 * 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.002607/0.3415, allocations: 2.691 MB / 0.5009 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00374/0.3453, allocations: 2.637 MB / 0.5035 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.3453, allocations: 0 / 0.5035 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006051/0.3459, allocations: 483.2 kB / 0.504 GB, free: 9.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.3471, allocations: 220.1 kB / 0.5042 GB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03086/0.378, allocations: 27.1 MB / 0.5307 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/0.38, allocations: 2.031 MB / 0.5326 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002698/0.3827, allocations: 1.312 MB / 0.5339 GB, free: 5.914 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.3837, allocations: 0.96 MB / 0.5349 GB, free: 4.953 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3837, allocations: 0 / 0.5349 GB, free: 4.953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06285/0.4466, allocations: 34.86 MB / 0.5689 GB, free: 2.293 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/8.05, allocations: 13.61 kB / 0.5689 GB, free: 2.285 MB / 446.1 MB (rm -f StewartPlatform_StewartPlatform.Tests.SpindleDrive_test.pipe ; mkfifo StewartPlatform_StewartPlatform.Tests.SpindleDrive_test.pipe ; head -c 1048576 < StewartPlatform_StewartPlatform.Tests.SpindleDrive_test.pipe >> ../files/StewartPlatform_StewartPlatform.Tests.SpindleDrive_test.sim & python3 -m fmpy simulate --output-file StewartPlatform_StewartPlatform.Tests.SpindleDrive_test_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 StewartPlatform_StewartPlatform_Tests_SpindleDrive_test.fmu > StewartPlatform_StewartPlatform.Tests.SpindleDrive_test.pipe 2>&1)