Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr StewartPlatform_StewartPlatform.Tests.ElectricCylinder_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.ElectricCylinder_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_ElectricCylinder_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(StewartPlatform.Tests.ElectricCylinder_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_ElectricCylinder_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.001528/0.001528, allocations: 108.6 kB / 15.73 MB, free: 72 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.001823/0.001823, allocations: 183.1 kB / 16.66 MB, free: 6.602 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.1383/0.1383, allocations: 6.478 MB / 297 MB, free: 2.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 67.89 kB / 410.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2696, allocations: 50.85 MB / 461.3 MB, free: 18.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.ElectricCylinder_test): time 0.01077/0.2804, allocations: 11.61 MB / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008941/0.2894, allocations: 4.39 MB / 477.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002595/0.292, allocations: 76.38 kB / 477.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004886/0.2969, allocations: 2.435 MB / 479.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005901/0.3029, allocations: 1.995 MB / 481.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001875/0.3048, allocations: 0.7651 MB / 482.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007576/0.3124, allocations: 5.55 MB / 488.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003841/0.3162, allocations: 3.515 MB / 491.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003194/0.3195, allocations: 1.676 MB / 493.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003509/0.323, allocations: 2.257 MB / 495.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009378/0.324, allocations: 400 kB / 495.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.3264, allocations: 1.17 MB / 497.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002004/0.3284, allocations: 1.98 MB / 499.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003013/0.3314, allocations: 2.417 MB / 0.4897 GB, free: 7.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008591/0.3401, allocations: 7.765 MB / 0.4973 GB, free: 44 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.3401, allocations: 4 kB / 0.4973 GB, free: 40 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3401, allocations: 0 / 0.4973 GB, free: 40 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001965/0.3403, allocations: 0 / 0.4973 GB, free: 40 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1308 * Number of variables: 1308 Notification: Performance of Generate backend data structure: time 0.01224/0.3526, allocations: 5.109 MB / 0.5023 GB, free: 10.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.3526, allocations: 12.03 kB / 0.5023 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001073/0.3537, allocations: 0.6247 MB / 0.5029 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1033/0.4571, allocations: 9.271 MB / 0.512 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009968/0.4671, allocations: 4.303 MB / 0.5162 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/0.4673, allocations: 213.6 kB / 0.5164 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.4685, allocations: 303.8 kB / 0.5167 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.4826, allocations: 8.38 MB / 0.5249 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.4828, allocations: 43.66 kB / 0.5249 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/0.4832, allocations: 135.9 kB / 0.525 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002167/0.4853, allocations: 1.564 MB / 0.5266 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.4969, allocations: 6.634 MB / 0.5331 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0379/0.5349, allocations: 32.73 MB / 0.565 GB, free: 8.852 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003908/0.5388, allocations: 2.164 MB / 0.5671 GB, free: 6.539 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008627/0.5397, allocations: 0.6664 MB / 0.5678 GB, free: 5.863 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004529/0.5443, allocations: 3.066 MB / 0.5708 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.5443, allocations: 51.06 kB / 0.5708 GB, free: 2.594 MB / 446.1 MB Notification: Performance of pre-optimization done (n=114): time 3.126e-06/0.5443, allocations: 0 / 0.5708 GB, free: 2.594 MB / 446.1 MB Notification: Performance of matching and sorting (n=134): time 0.0151/0.5594, allocations: 7.841 MB / 0.5785 GB, free: 10.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.5596, allocations: 273.7 kB / 0.5787 GB, free: 10.33 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005151/0.5648, allocations: 4.137 MB / 0.5828 GB, free: 6.168 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.5649, allocations: 41.7 kB / 0.5828 GB, free: 6.121 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.5668, allocations: 3.071 MB / 0.5858 GB, free: 3.02 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004587/0.5673, allocations: 0.5584 MB / 0.5864 GB, free: 2.457 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/0.5684, allocations: 1.048 MB / 0.5874 GB, free: 1.398 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.5685, allocations: 305.1 kB / 0.5877 GB, free: 1.098 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2161/0.7846, allocations: 1.376 MB / 0.589 GB, free: 110.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004153/0.7889, allocations: 4.751 MB / 0.5937 GB, free: 105.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006564/0.7954, allocations: 6.681 MB / 0.6002 GB, free: 99.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001227/0.7956, allocations: 37.59 kB / 0.6002 GB, free: 99.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.00943/0.805, allocations: 5.914 MB / 0.606 GB, free: 97.39 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.743e-05/0.8052, allocations: 57.12 kB / 0.6061 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/0.8053, allocations: 118.2 kB / 0.6062 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001994/0.8055, allocations: 161.5 kB / 0.6063 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003285/0.8088, allocations: 1.216 MB / 0.6075 GB, free: 97.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000219/0.809, allocations: 236.7 kB / 0.6077 GB, free: 97.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003212/0.8122, allocations: 254.4 kB / 0.608 GB, free: 97.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/0.8126, allocations: 319.6 kB / 0.6083 GB, free: 97.06 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 30 (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],electricCylinder.bodyCylinder.color[3],electricCylinder.bodyCylinder.color[2],electricCylinder.bodyCylinder.color[1],electricCylinder.bodyCylinder.body.sphereColor[3],electricCylinder.bodyCylinder.body.sphereColor[2],electricCylinder.bodyCylinder.body.sphereColor[1],electricCylinder.bodyBox.color[3],electricCylinder.bodyBox.color[2],electricCylinder.bodyBox.color[1],electricCylinder.bodyBox.body.sphereColor[3],electricCylinder.bodyBox.body.sphereColor[2],electricCylinder.bodyBox.body.sphereColor[1],electricCylinder.prismatic.boxColor[3],electricCylinder.prismatic.boxColor[2],electricCylinder.prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (652): * Single equations (assignments): 649 * 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.002784/0.8154, allocations: 2.026 MB / 0.6103 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000594/0.816, allocations: 364.7 kB / 0.6106 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006655/0.8167, allocations: 407.7 kB / 0.611 GB, free: 95.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.8167, allocations: 14.41 kB / 0.611 GB, free: 95.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/0.8168, allocations: 2.438 kB / 0.611 GB, free: 95.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.8168, allocations: 6.594 kB / 0.611 GB, free: 95.95 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008238/0.825, allocations: 5.31 MB / 0.6162 GB, free: 93.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/0.8251, allocations: 13.03 kB / 0.6162 GB, free: 93.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008167/0.8259, allocations: 235.6 kB / 0.6164 GB, free: 93.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.067e-05/0.8259, allocations: 19.25 kB / 0.6165 GB, free: 93.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.137e-05/0.826, allocations: 37.45 kB / 0.6165 GB, free: 93.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.331e-05/0.826, allocations: 29.05 kB / 0.6165 GB, free: 93.47 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.636e-05/0.826, allocations: 23.16 kB / 0.6165 GB, free: 93.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003402/0.8294, allocations: 2.919 MB / 0.6194 GB, free: 91.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.8307, allocations: 0.5379 MB / 0.6199 GB, free: 91.49 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/0.831, allocations: 39.16 kB / 0.62 GB, free: 91.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8321, allocations: 54.62 kB / 0.62 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.8323, allocations: 119.8 kB / 0.6201 GB, free: 91.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.907e-05/0.8324, allocations: 53 kB / 0.6202 GB, free: 91.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00435/0.8367, allocations: 2.629 MB / 0.6227 GB, free: 90.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8368, allocations: 0 / 0.6227 GB, free: 90.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004634/0.8414, allocations: 0.8107 MB / 0.6235 GB, free: 90.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 2 (electricCylinder.prismatic.s,electricCylinder.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 (118): * Single equations (assignments): 115 * 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.003064/0.8445, allocations: 3.573 MB / 0.627 GB, free: 88.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004413/0.8489, allocations: 3.237 MB / 0.6302 GB, free: 87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.8489, allocations: 0.6875 kB / 0.6302 GB, free: 87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007101/0.8496, allocations: 0.6691 MB / 0.6308 GB, free: 86.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.8524, allocations: 0.5478 MB / 0.6314 GB, free: 86.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04002/0.8924, allocations: 38.73 MB / 0.6692 GB, free: 46.24 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002442/0.8949, allocations: 3.108 MB / 0.6722 GB, free: 43.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002991/0.8979, allocations: 1.639 MB / 0.6738 GB, free: 41.45 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001581/0.8995, allocations: 1.765 MB / 0.6756 GB, free: 39.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.8995, allocations: 0 / 0.6756 GB, free: 39.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09782/0.9973, allocations: 61.47 MB / 0.7356 GB, free: 10.58 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/17.97, allocations: 10.66 kB / 0.7356 GB, free: 10.57 MB / 494.1 MB (rm -f StewartPlatform_StewartPlatform.Tests.ElectricCylinder_test.pipe ; mkfifo StewartPlatform_StewartPlatform.Tests.ElectricCylinder_test.pipe ; head -c 1048576 < StewartPlatform_StewartPlatform.Tests.ElectricCylinder_test.pipe >> ../files/StewartPlatform_StewartPlatform.Tests.ElectricCylinder_test.sim & python3 -m fmpy simulate --output-file StewartPlatform_StewartPlatform.Tests.ElectricCylinder_test_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 StewartPlatform_StewartPlatform_Tests_ElectricCylinder_test.fmu > StewartPlatform_StewartPlatform.Tests.ElectricCylinder_test.pipe 2>&1)