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.001369/0.001369, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247 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.2309/0.2309, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.002334/0.002334, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3221, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01474/0.3368, allocations: 11.92 MB / 0.5422 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009722/0.3466, allocations: 4.067 MB / 0.5462 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.3495, allocations: 80 kB / 0.5463 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003713/0.3532, allocations: 1.671 MB / 0.5479 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004332/0.3576, allocations: 1.523 MB / 0.5494 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002545/0.3602, allocations: 1.18 MB / 0.5506 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005344/0.3656, allocations: 3.498 MB / 0.554 GB, free: 9.695 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003273/0.3689, allocations: 2.452 MB / 0.5564 GB, free: 7.191 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0019/0.3708, allocations: 1.156 MB / 0.5575 GB, free: 6.031 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002214/0.3731, allocations: 1.565 MB / 0.559 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006942/0.3738, allocations: 236 kB / 0.5593 GB, free: 4.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.3754, allocations: 0.706 MB / 0.5599 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.377, allocations: 1.55 MB / 0.5615 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002333/0.3794, allocations: 1.863 MB / 0.5633 GB, free: 96 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007394/0.3868, allocations: 6.135 MB / 0.5693 GB, free: 9.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3869, allocations: 0 / 0.5693 GB, free: 9.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3869, allocations: 0 / 0.5693 GB, free: 9.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001878/0.3871, allocations: 0 / 0.5693 GB, free: 9.93 MB / 430.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.008357/0.3954, allocations: 4.098 MB / 0.5733 GB, free: 5.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.3955, allocations: 15.97 kB / 0.5733 GB, free: 5.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00148/0.397, allocations: 0.7164 MB / 0.574 GB, free: 5.012 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/0.4072, allocations: 2.993 MB / 0.5769 GB, free: 2.012 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003848/0.4111, allocations: 1.819 MB / 0.5787 GB, free: 144 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/0.4113, allocations: 197 kB / 0.5789 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000987/0.4123, allocations: 247.7 kB / 0.5791 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.4293, allocations: 10.04 MB / 0.5889 GB, free: 5.012 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.212e-05/0.4294, allocations: 31.75 kB / 0.5889 GB, free: 4.98 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006611/0.4301, allocations: 123.8 kB / 0.5891 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003959/0.4341, allocations: 2.314 MB / 0.5913 GB, free: 2.539 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01683/0.4509, allocations: 8.93 MB / 0.6 GB, free: 9.598 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04944/0.5004, allocations: 37.6 MB / 0.6368 GB, free: 2.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006165/0.5066, allocations: 3.382 MB / 0.6401 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/0.5087, allocations: 1.23 MB / 0.6413 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009904/0.5186, allocations: 5.188 MB / 0.6463 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/0.5187, allocations: 58.98 kB / 0.6464 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 4.979e-06/0.5188, allocations: 0 / 0.6464 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007566/0.5263, allocations: 3.343 MB / 0.6496 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.5265, allocations: 166.8 kB / 0.6498 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/0.5337, allocations: 3.837 MB / 0.6536 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002956/0.534, allocations: 45.7 kB / 0.6536 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003331/0.5373, allocations: 3.318 MB / 0.6568 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.5385, allocations: 0.6243 MB / 0.6574 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00234/0.5409, allocations: 1.322 MB / 0.6587 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.541, allocations: 301.1 kB / 0.659 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003241/0.5443, allocations: 1.953 MB / 0.6609 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006891/0.5512, allocations: 6.111 MB / 0.6669 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.5615, allocations: 8.788 MB / 0.6755 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001068/0.5616, allocations: 40 kB / 0.6755 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01357/0.5752, allocations: 7.722 MB / 0.6831 GB, free: 14.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.5754, allocations: 68 kB / 0.6831 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001761/0.5755, allocations: 152.1 kB / 0.6833 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001869/0.5757, allocations: 192 kB / 0.6835 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00443/0.5802, allocations: 1.462 MB / 0.6849 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002417/0.5804, allocations: 290.9 kB / 0.6852 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004242/0.5847, allocations: 0.9305 MB / 0.6861 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009328/0.5857, allocations: 404 kB / 0.6865 GB, free: 11.29 MB / 0.545 GB 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.003754/0.5894, allocations: 2.202 MB / 0.6886 GB, free: 9.07 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005894/0.59, allocations: 325.7 kB / 0.6889 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008737/0.5909, allocations: 407.1 kB / 0.6893 GB, free: 8.348 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.042e-05/0.591, allocations: 39.98 kB / 0.6893 GB, free: 8.309 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-05/0.591, allocations: 3.938 kB / 0.6893 GB, free: 8.305 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.591, allocations: 7.984 kB / 0.6894 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009166/0.6002, allocations: 5.467 MB / 0.6947 GB, free: 2.703 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.6003, allocations: 7.984 kB / 0.6947 GB, free: 2.695 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009469/0.6012, allocations: 211.6 kB / 0.6949 GB, free: 2.488 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.6012, allocations: 8.656 kB / 0.6949 GB, free: 2.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.471e-05/0.6013, allocations: 32 kB / 0.6949 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-05/0.6014, allocations: 15.92 kB / 0.695 GB, free: 2.434 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.6014, allocations: 8 kB / 0.695 GB, free: 2.426 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.6044, allocations: 2.55 MB / 0.6975 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006016/0.6051, allocations: 390.7 kB / 0.6978 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.6054, allocations: 28 kB / 0.6979 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009306/0.6063, allocations: 71.77 kB / 0.6979 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.6065, allocations: 84.34 kB / 0.698 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.226e-05/0.6066, allocations: 40 kB / 0.698 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003519/0.6101, allocations: 2.342 MB / 0.7003 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.91e-07/0.6101, allocations: 0 / 0.7003 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004429/0.6146, allocations: 1.072 MB / 0.7014 GB, free: 11.76 MB / 0.5606 GB 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.003591/0.6182, allocations: 3.172 MB / 0.7045 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007134/0.6253, allocations: 4.443 MB / 0.7088 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.6254, allocations: 0.875 kB / 0.7088 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.6267, allocations: 0.948 MB / 0.7097 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.6287, allocations: 348.8 kB / 0.7101 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/0.9232, allocations: 41.8 MB / 0.7509 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002533/0.9258, allocations: 3.162 MB / 0.754 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003748/0.9296, allocations: 2.222 MB / 0.7561 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/0.9314, allocations: 1.663 MB / 0.7578 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of SimCode: time 7.41e-07/0.9314, allocations: 0 / 0.7578 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07485/1.006, allocations: 50.93 MB / 0.8075 GB, free: 103.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.72/20.73, allocations: 9.438 kB / 0.8075 GB, free: 103.3 MB / 0.5762 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)