Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001877/0.001877, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002205/0.002205, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2365/0.2365, allocations: 46.12 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002221, allocations: 84.92 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1307, allocations: 62.46 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01413/0.1449, allocations: 11.91 MB / 492.1 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008906/0.1538, allocations: 4.082 MB / 496.2 MB, free: 5.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.1561, allocations: 79.81 kB / 496.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003985/0.1601, allocations: 1.666 MB / 497.9 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004826/0.165, allocations: 1.514 MB / 499.5 MB, free: 1.773 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002952/0.168, allocations: 1.184 MB / 0.4889 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006165/0.1742, allocations: 3.493 MB / 0.4923 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003895/0.1781, allocations: 2.458 MB / 0.4947 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0021/0.1802, allocations: 1.156 MB / 0.4959 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002816/0.1831, allocations: 1.557 MB / 0.4974 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009301/0.184, allocations: 243.9 kB / 0.4976 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001782/0.1858, allocations: 0.7138 MB / 0.4983 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002056/0.1879, allocations: 1.539 MB / 0.4998 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003023/0.1909, allocations: 1.859 MB / 0.5016 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2347/0.4256, allocations: 5.826 MB / 0.5073 GB, free: 18.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.4257, allocations: 0.7812 kB / 0.5073 GB, free: 18.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4257, allocations: 0 / 0.5073 GB, free: 18.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000306/0.426, allocations: 0.6875 kB / 0.5073 GB, free: 18.69 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.01261/0.4386, allocations: 3.976 MB / 0.5112 GB, free: 16.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.4387, allocations: 10.25 kB / 0.5112 GB, free: 16.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002462/0.4412, allocations: 0.7125 MB / 0.5119 GB, free: 16.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01113/0.4524, allocations: 2.97 MB / 0.5148 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004782/0.4572, allocations: 1.791 MB / 0.5166 GB, free: 16.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.4574, allocations: 194 kB / 0.5167 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001367/0.4588, allocations: 250.2 kB / 0.517 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01976/0.4786, allocations: 10.04 MB / 0.5268 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-05/0.4787, allocations: 27.19 kB / 0.5268 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005264/0.4793, allocations: 123.3 kB / 0.5269 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00356/0.4828, allocations: 2.318 MB / 0.5292 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01509/0.4979, allocations: 8.925 MB / 0.5379 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0577/0.5557, allocations: 37.7 MB / 0.5747 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006734/0.5624, allocations: 3.379 MB / 0.578 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002399/0.5649, allocations: 1.233 MB / 0.5792 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/0.5756, allocations: 5.171 MB / 0.5843 GB, free: 8.074 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.5757, allocations: 55.78 kB / 0.5843 GB, free: 8.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 6.703e-06/0.5757, allocations: 0 / 0.5843 GB, free: 8.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.007971/0.5837, allocations: 3.328 MB / 0.5876 GB, free: 4.699 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.5839, allocations: 166.8 kB / 0.5877 GB, free: 4.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008581/0.5924, allocations: 3.822 MB / 0.5915 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005052/0.593, allocations: 44.36 kB / 0.5915 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004903/0.5979, allocations: 3.181 MB / 0.5946 GB, free: 13.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001487/0.5995, allocations: 0.608 MB / 0.5952 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003815/0.6033, allocations: 1.299 MB / 0.5965 GB, free: 11.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.6035, allocations: 305.1 kB / 0.5968 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005642/0.6092, allocations: 1.949 MB / 0.5987 GB, free: 9.309 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01267/0.6219, allocations: 6.118 MB / 0.6047 GB, free: 1.191 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02016/0.6421, allocations: 8.792 MB / 0.6132 GB, free: 6.938 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002103/0.6424, allocations: 44 kB / 0.6133 GB, free: 6.895 MB / 462.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.02814/0.6706, allocations: 7.698 MB / 0.6208 GB, free: 15.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002001/0.6708, allocations: 71.94 kB / 0.6209 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003172/0.6712, allocations: 144 kB / 0.621 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/0.6715, allocations: 200 kB / 0.6212 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00931/0.6809, allocations: 1.458 MB / 0.6226 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000454/0.6814, allocations: 286.9 kB / 0.6229 GB, free: 13.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/0.6915, allocations: 0.9094 MB / 0.6238 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002444/0.694, allocations: 404 kB / 0.6242 GB, free: 11.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 783 * Array equations: 8 * 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.008428/0.7025, allocations: 2.198 MB / 0.6263 GB, free: 9.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001169/0.7037, allocations: 303.9 kB / 0.6266 GB, free: 9.473 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.7052, allocations: 411.1 kB / 0.627 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001261/0.7054, allocations: 37.84 kB / 0.627 GB, free: 9.031 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.438e-05/0.7054, allocations: 4 kB / 0.627 GB, free: 9.027 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.957e-05/0.7054, allocations: 3.984 kB / 0.627 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01716/0.7226, allocations: 5.467 MB / 0.6324 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.224e-05/0.7227, allocations: 8 kB / 0.6324 GB, free: 3.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.7248, allocations: 207.7 kB / 0.6326 GB, free: 3.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-05/0.7248, allocations: 12 kB / 0.6326 GB, free: 3.238 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001549/0.725, allocations: 30.67 kB / 0.6326 GB, free: 3.211 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.187e-05/0.7251, allocations: 20.23 kB / 0.6326 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.629e-05/0.7251, allocations: 7.938 kB / 0.6327 GB, free: 3.184 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005908/0.731, allocations: 2.532 MB / 0.6351 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/0.7322, allocations: 372.7 kB / 0.6355 GB, free: 188 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005294/0.7328, allocations: 30.83 kB / 0.6355 GB, free: 160 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/0.7346, allocations: 67.91 kB / 0.6356 GB, free: 92 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.7349, allocations: 80.3 kB / 0.6357 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000198/0.7351, allocations: 50.88 kB / 0.6357 GB, free: 15.96 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006253/0.7414, allocations: 2.33 MB / 0.638 GB, free: 13.65 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.7414, allocations: 0.7656 kB / 0.638 GB, free: 13.65 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006123/0.7476, allocations: 1.063 MB / 0.639 GB, free: 12.59 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (108): * Single equations (assignments): 102 * 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.004363/0.752, allocations: 3.168 MB / 0.6421 GB, free: 9.316 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009469/0.7615, allocations: 5.084 MB / 0.6471 GB, free: 4.273 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/0.7615, allocations: 4.25 kB / 0.6471 GB, free: 4.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.7629, allocations: 0.9558 MB / 0.648 GB, free: 3.316 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.7653, allocations: 357.2 kB / 0.6484 GB, free: 2.977 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07461/0.8399, allocations: 45.55 MB / 0.6928 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004045/0.844, allocations: 3.166 MB / 0.6959 GB, free: 10.43 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005554/0.8496, allocations: 2.225 MB / 0.6981 GB, free: 8.199 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002656/0.8523, allocations: 1.663 MB / 0.6997 GB, free: 6.535 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/0.8523, allocations: 0 / 0.6997 GB, free: 6.535 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3498/1.202, allocations: 54.82 MB / 0.7532 GB, free: 170.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.494/10.7, allocations: 15.08 kB / 0.7533 GB, free: 170.5 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1)