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.001778/0.001778, allocations: 117.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002214/0.002214, allocations: 200.7 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 247 MB, free: 10.44 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.2355/0.2355, allocations: 46.11 MB / 344.3 MB, free: 11.45 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.002327/0.002327, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3211, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01408/0.3352, allocations: 11.93 MB / 0.5422 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009322/0.3446, allocations: 4.068 MB / 0.5462 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002427/0.3471, allocations: 75.72 kB / 0.5463 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003878/0.351, allocations: 1.67 MB / 0.5479 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004457/0.3555, allocations: 1.521 MB / 0.5494 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.3583, allocations: 1.173 MB / 0.5506 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005705/0.364, allocations: 3.509 MB / 0.554 GB, free: 9.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003719/0.3678, allocations: 2.456 MB / 0.5564 GB, free: 7.203 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.3702, allocations: 1.156 MB / 0.5575 GB, free: 6.043 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002558/0.3728, allocations: 1.569 MB / 0.559 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008585/0.3737, allocations: 236 kB / 0.5593 GB, free: 4.238 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.3756, allocations: 0.7061 MB / 0.56 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.3775, allocations: 1.547 MB / 0.5615 GB, free: 1.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.3801, allocations: 1.851 MB / 0.5633 GB, free: 120 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008627/0.3888, allocations: 6.151 MB / 0.5693 GB, free: 9.938 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.3888, allocations: 0 / 0.5693 GB, free: 9.938 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3888, allocations: 0 / 0.5693 GB, free: 9.938 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001923/0.389, allocations: 0 / 0.5693 GB, free: 9.938 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.007708/0.3967, allocations: 4.09 MB / 0.5733 GB, free: 5.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3968, allocations: 11.97 kB / 0.5733 GB, free: 5.758 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001285/0.3981, allocations: 0.7203 MB / 0.574 GB, free: 5.027 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.4084, allocations: 2.989 MB / 0.5769 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003894/0.4123, allocations: 1.823 MB / 0.5787 GB, free: 160 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.4125, allocations: 192.9 kB / 0.5789 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008664/0.4134, allocations: 247.8 kB / 0.5791 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01676/0.4302, allocations: 10.04 MB / 0.5889 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.079e-05/0.4303, allocations: 35.69 kB / 0.5889 GB, free: 4.996 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006014/0.4309, allocations: 127.8 kB / 0.5891 GB, free: 4.871 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003953/0.4349, allocations: 2.302 MB / 0.5913 GB, free: 2.562 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/0.4521, allocations: 8.934 MB / 0.6 GB, free: 9.621 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05246/0.5046, allocations: 37.6 MB / 0.6368 GB, free: 2.906 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006124/0.5108, allocations: 3.38 MB / 0.6401 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001988/0.5128, allocations: 1.238 MB / 0.6413 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009127/0.5219, allocations: 5.192 MB / 0.6463 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.522, allocations: 47.12 kB / 0.6464 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 4.398e-06/0.522, allocations: 3.938 kB / 0.6464 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007338/0.5294, allocations: 3.339 MB / 0.6496 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.5295, allocations: 174.7 kB / 0.6498 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005614/0.5352, allocations: 3.834 MB / 0.6536 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.5353, allocations: 41.7 kB / 0.6536 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002613/0.538, allocations: 3.325 MB / 0.6568 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007324/0.5387, allocations: 0.6282 MB / 0.6575 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001859/0.5406, allocations: 1.314 MB / 0.6587 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.5407, allocations: 305.1 kB / 0.659 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003078/0.5438, allocations: 1.957 MB / 0.6609 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006714/0.5505, allocations: 6.104 MB / 0.6669 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/0.5611, allocations: 8.792 MB / 0.6755 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.5612, allocations: 48 kB / 0.6755 GB, free: 6.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01365/0.5749, allocations: 7.718 MB / 0.6831 GB, free: 14.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.575, allocations: 68 kB / 0.6831 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001942/0.5752, allocations: 151.9 kB / 0.6833 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000209/0.5754, allocations: 192 kB / 0.6835 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004523/0.58, allocations: 1.45 MB / 0.6849 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002722/0.5803, allocations: 290.9 kB / 0.6852 GB, free: 12.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/0.5846, allocations: 0.9348 MB / 0.6861 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008736/0.5855, allocations: 400 kB / 0.6864 GB, free: 11.3 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.003688/0.5893, allocations: 2.198 MB / 0.6886 GB, free: 9.094 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.5898, allocations: 329.7 kB / 0.6889 GB, free: 8.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008995/0.5907, allocations: 411 kB / 0.6893 GB, free: 8.363 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.457e-05/0.5908, allocations: 36 kB / 0.6893 GB, free: 8.328 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.5908, allocations: 0 / 0.6893 GB, free: 8.328 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.5908, allocations: 7.969 kB / 0.6893 GB, free: 8.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009716/0.6006, allocations: 5.468 MB / 0.6947 GB, free: 2.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.997e-05/0.6006, allocations: 12.03 kB / 0.6947 GB, free: 2.715 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009862/0.6016, allocations: 207.6 kB / 0.6949 GB, free: 2.512 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-05/0.6017, allocations: 15.94 kB / 0.6949 GB, free: 2.496 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.245e-05/0.6018, allocations: 27.98 kB / 0.6949 GB, free: 2.469 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.3e-05/0.6018, allocations: 12 kB / 0.6949 GB, free: 2.457 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.6018, allocations: 7.938 kB / 0.695 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/0.605, allocations: 2.562 MB / 0.6975 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006671/0.6057, allocations: 386.7 kB / 0.6978 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003388/0.6061, allocations: 28 kB / 0.6978 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000991/0.6071, allocations: 67.84 kB / 0.6979 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.6073, allocations: 76.36 kB / 0.698 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.6074, allocations: 51.89 kB / 0.698 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003646/0.611, allocations: 2.334 MB / 0.7003 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/0.611, allocations: 0 / 0.7003 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004546/0.6156, allocations: 1.068 MB / 0.7014 GB, free: 11.79 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.003877/0.6195, allocations: 3.18 MB / 0.7045 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007136/0.6267, allocations: 4.45 MB / 0.7088 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.6267, allocations: 4 kB / 0.7088 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.6281, allocations: 0.9492 MB / 0.7097 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.6302, allocations: 351.2 kB / 0.7101 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2912/0.9214, allocations: 41.8 MB / 0.7509 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003306/0.9248, allocations: 3.163 MB / 0.754 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00412/0.9289, allocations: 2.225 MB / 0.7562 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001997/0.9309, allocations: 1.655 MB / 0.7578 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.352e-06/0.9309, allocations: 4 kB / 0.7578 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0785/1.009, allocations: 50.91 MB / 0.8075 GB, free: 101 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.79/24.8, allocations: 5.906 kB / 0.8075 GB, free: 101 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1)